Open perarnau opened 5 months ago
Use the prometheus python client to export sensors as Gauge to prometheus.
The code is a bit brittle, since sensors uuid can be anything and prometheus has requirements for metric names, but otherwise the code works.
The real problem is the absence of types on nrm sensors.
TODO:
One easy solution for typing is to keep a dict of known sensors we would want converted into proper types
Use the prometheus python client to export sensors as Gauge to prometheus.
The code is a bit brittle, since sensors uuid can be anything and prometheus has requirements for metric names, but otherwise the code works.
The real problem is the absence of types on nrm sensors.
TODO:
One easy solution for typing is to keep a dict of known sensors we would want converted into proper types