remne / p1ib

P1 Interface Bridge
Other
64 stars 4 forks source link

Feature request: Prometheus metrics #62

Open MrRagnar opened 1 month ago

MrRagnar commented 1 month ago

I'd like to request the addition of a Prometheus metrics endpoint. Adding a native /metrics HTTP endpoint would enable direct integration with Prometheus monitoring without the use of a MQTT exporter/gateway. The implementation should expose the same metrics currently available via MQTT.

For implementation reference, please see the official Prometheus documentation on writing exporters: https://prometheus.io/docs/instrumenting/writing_exporters/

I'd be happy to help test it and discuss it but unfortunately I'm not a great developer :)

Thanks for considering it!

remne commented 1 month ago

Hi, Thanks for the request. I agree, it might make life easier for some users which primarily uses grafana together with prometheus for visualisations. I guess the most common solution today, besides using prometheus, is the HA + influxDB + grafana combination.

I'll put it on my feature list.

Regards, Andreas