AirGradient Forum

prometheus metric vs json is different

Hello,

I’m using the prometheus endpoint to connect all our sensors to our internal prometheus service. Now I realized that not all values are available, compared with the json endpoint.

e.g. in json I have pm003Count, pm005Count, pm01Count & pm02Count

i guess that the prometheus var “airgradient_pm0d3_p100ml” corresponds to json var “pm003Count”. But where are the others.

why are there differences. I mean exporting a value does not cost anything extra. I guess also that the same person is writing the exporter code for json and prometheus. So, why not keeping them in sync to export always the same values?

best

Probably best to open an Issue on their Github to track it, but fine to also discuss here:

Issues · airgradienthq/arduino

1 Like