Skip to content

Commit

Permalink
Change metric type back to gauge
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Michel committed Jun 13, 2023
1 parent ee4b479 commit 3562e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebApi_prometheus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void WebApiPrometheusClass::onPrometheusMetricsGet(AsyncWebServerRequest* reques
stream->printf("wifi_rssi %d\n", WiFi.RSSI());

stream->print("# HELP wifi_station WiFi Station info\n");
stream->print("# TYPE wifi_station label\n");
stream->print("# TYPE wifi_station gauge\n");
stream->printf("wifi_station{bssid=\"%s\"} 1\n", WiFi.BSSIDstr().c_str());

for (uint8_t i = 0; i < Hoymiles.getNumInverters(); i++) {
Expand Down

0 comments on commit 3562e85

Please sign in to comment.