[ONE/Prometheus] Use full unit in temperature metric

Please see: https://prometheus.io/docs/practices/naming/#base-units

Also, thanks a lot for this support, I had my own exporter that I can now delete :)

Signed-off-by: gouthamve <gouthamve@gmail.com>
This commit is contained in:
gouthamve
2024-03-08 19:02:19 +01:00
parent 9ddb606a00
commit f361e3c9a9

View File

@ -1056,7 +1056,7 @@ void webServerMetricsGet(void) {
add_metric("temperature", add_metric("temperature",
"The ambient temperature as measured by the AirGradient SHT " "The ambient temperature as measured by the AirGradient SHT "
"sensor, in degrees Celsius", "sensor, in degrees Celsius",
"gauge", "degc"); "gauge", "celcius");
add_metric_point("", String(temp)); add_metric_point("", String(temp));
} }
if (hum >= 0) { if (hum >= 0) {