From f741f432628f01ba47dde876c185c51cdadaa85e Mon Sep 17 00:00:00 2001 From: Mark Hansen Date: Sat, 27 Jun 2020 12:10:00 +1000 Subject: [PATCH] Add tasmota_boot_count prometheus metric --- tasmota/xsns_91_prometheus.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/tasmota/xsns_91_prometheus.ino b/tasmota/xsns_91_prometheus.ino index 9e29afe75..a2e03557f 100644 --- a/tasmota/xsns_91_prometheus.ino +++ b/tasmota/xsns_91_prometheus.ino @@ -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);