# Issues with node-red-contrib-prometheus-exporter on a particular node

**URL:** <https://discourse.nodered.org/t/issues-with-node-red-contrib-prometheus-exporter-on-a-particular-node/50351>\
**Category:** General\
**Created:** [29 August 2021 13:53 UTC](https://discourse.nodered.org/t/issues-with-node-red-contrib-prometheus-exporter-on-a-particular-node/50351 "2021-08-29T13:53:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FeliceM](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@FeliceM](https://discourse.nodered.org/u/FeliceM)\
**Post date:** [29 August 2021 13:53 UTC](https://discourse.nodered.org/t/issues-with-node-red-contrib-prometheus-exporter-on-a-particular-node/50351/1 "2021-08-29T13:53:45Z")

</div>

I finally successfully managed set up few nodes with the Prometheus exporter except one.  
Differently from the other nodes which are fine, this note simply expect a 0/1 which represent the status of a pin low/high.

```auto
[{"id":"cc08c4d980616d50","type":"rpi-gpio in","z":"4e4990f3.d4ada","name":"Digi1","pin":"33","intype":"tri","debounce":"250","read":true,"x":190,"y":560,"wires":[["eac0b39954ba4df6","4b48f8c4ecf91f7a","7642286748afd7c9"]]},{"id":"eac0b39954ba4df6","type":"debug","z":"4e4990f3.d4ada","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":350,"y":540,"wires":[]},{"id":"4b48f8c4ecf91f7a","type":"influxdb out","z":"4e4990f3.d4ada","influxdb":"b87cafc6.11924","name":"Digi1-Influx","measurement":"Digi1","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"ms","retentionPolicyV18Flux":"","org":"organisation","bucket":"bucket","x":350,"y":580,"wires":[]},{"id":"7642286748afd7c9","type":"change","z":"4e4990f3.d4ada","name":"prom-exporter-digi1","rules":[{"t":"set","p":"payload.val","pt":"msg","to":"payload","tot":"msg"},{"t":"set","p":"payload.op","pt":"msg","to":"set","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":560,"wires":[["d6a1c7879f44da0b"]]},{"id":"d6a1c7879f44da0b","type":"prometheus-exporter","z":"4e4990f3.d4ada","name":"","metric":"8ae66ae189b4f751","x":810,"y":560,"wires":[]},{"id":"b87cafc6.11924","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"datastorage","name":"","usetls":false,"tls":"","influxdbVersion":"1.x","url":"http://localhost:8086","rejectUnauthorized":true},{"id":"8ae66ae189b4f751","type":"prometheus-metric-config","name":"raspberrypi_digi1","help":"Digi 1","labels":"","mtype":"counter"}]

```

I tried both, gauge and metric but I still have errors.

 ![Schermata 2021-08-29 alle 15.51.19](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/f/2f995c7ed3c7f2a641750402efb3f1656bb31187.jpeg)  
 ![Schermata 2021-08-29 alle 15.50.52](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/7/e79a0be10bb2b3cd57d019ac7bca8857421e2d0d.png)

Any suggestion nohow to solve this issue?  
Thank you

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [29 August 2021 16:18 UTC](https://discourse.nodered.org/t/issues-with-node-red-contrib-prometheus-exporter-on-a-particular-node/50351/2 "2021-08-29T16:18:54Z")

</div>

You might be best served by opening an issue on the node's Github page: [Issues · Docoyo/node-red-contrib-prometheus-exporter · GitHub](https://github.com/Docoyo/node-red-contrib-prometheus-exporter/issues)

---

<div class="post-metadata">

**Author:** ![FeliceM](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@FeliceM](https://discourse.nodered.org/u/FeliceM)\
**Post date:** [29 August 2021 16:39 UTC](https://discourse.nodered.org/t/issues-with-node-red-contrib-prometheus-exporter-on-a-particular-node/50351/3 "2021-08-29T16:39:29Z")

</div>

Thank you for the direction. I am not sure if it is an issue with the node or if I am doing a mistake.  
I have other nodes like this in the same flow working but with different metrics.  
If I don't get right here I will try in Github.  
Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [28 October 2021 16:40 UTC](https://discourse.nodered.org/t/issues-with-node-red-contrib-prometheus-exporter-on-a-particular-node/50351/4 "2021-10-28T16:40:15Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
