Merge pull request #8796 from mhansen/boot_count

Add tasmota_boot_count prometheus metric
This commit is contained in:
Theo Arends 2020-06-27 10:34:26 +02:00 committed by GitHub
commit 74a3be49a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,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);