anlsys / libnrm

Node Resource Manager communication library
BSD 3-Clause "New" or "Revised" License
7 stars 0 forks source link

[feature] binary to export to prometheus #101

Open perarnau opened 5 months ago

perarnau commented 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