mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-23 13:37:16 +02:00
[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:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user