mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 23:07:17 +00:00
Merge pull request #8796 from mhansen/boot_count
Add tasmota_boot_count prometheus metric
This commit is contained in:
commit
74a3be49a4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user