mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
Add tasmota_boot_count prometheus metric
This commit is contained in:
parent
5014fb985b
commit
f741f43262
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user