/npn-sensor-prometheus-exporter

Can be deployed on a Raspberry Pi to read values from an NPN (inductive) sensor

Primary LanguageGoMIT LicenseMIT

NPN Meter Prometheus Exporter

Based on this blogpost, I wanted to get the NPN data (and thus the water meter gauge) into my monitoring stack (Prometheus + Grafana). Therefore, I decided to write my own Prometheus exporter to read the data from GPIO and expose the data through a metrics endpoint.

Contributions

You're welcome to clone, fork, adjust the code to your needs. If you think that others may benefit as well, please make a pull request.