Add tasmota_boot_count prometheus metric

This commit is contained in:
Mark Hansen 2020-06-27 12:10:00 +10:00
parent 5014fb985b
commit f741f43262

View File

@ -38,6 +38,7 @@ void HandleMetrics(void)
char parameter[FLOATSZ];
WSContentSend_P(PSTR("# TYPE tasmota_uptime_seconds gauge\ntasmota_uptime_seconds %d\n"), uptime);
WSContentSend_P(PSTR("# TYPE tasmota_boot_count counter\ntasmota_boot_count %d\n"), Settings.bootcount);
if (!isnan(global_temperature)) {
dtostrfd(global_temperature, Settings.flag2.temperature_resolution, parameter);