From f361e3c9a9093c4f27a9620642b923de774de5f6 Mon Sep 17 00:00:00 2001 From: gouthamve Date: Fri, 8 Mar 2024 19:02:19 +0100 Subject: [PATCH] [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 --- examples/ONE/ONE.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ONE/ONE.ino b/examples/ONE/ONE.ino index fde5c3c..ae3d1f3 100644 --- a/examples/ONE/ONE.ino +++ b/examples/ONE/ONE.ino @@ -1056,7 +1056,7 @@ void webServerMetricsGet(void) { add_metric("temperature", "The ambient temperature as measured by the AirGradient SHT " "sensor, in degrees Celsius", - "gauge", "degc"); + "gauge", "celcius"); add_metric_point("", String(temp)); } if (hum >= 0) {