mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Merge pull request #8814 from mhansen/flash_writes
Add tasmota_flash_writes_total to Prometheus
This commit is contained in:
commit
e635b552bd
@ -40,6 +40,7 @@ void HandleMetrics(void)
|
|||||||
my_version, my_image, GetBuildDateAndTime().c_str());
|
my_version, my_image, GetBuildDateAndTime().c_str());
|
||||||
WSContentSend_P(PSTR("# TYPE tasmota_uptime_seconds gauge\ntasmota_uptime_seconds %d\n"), uptime);
|
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);
|
WSContentSend_P(PSTR("# TYPE tasmota_boot_count counter\ntasmota_boot_count %d\n"), Settings.bootcount);
|
||||||
|
WSContentSend_P(PSTR("# TYPE tasmota_flash_writes_total counter\ntasmota_flash_writes_total %d\n"), Settings.save_flag);
|
||||||
|
|
||||||
|
|
||||||
// Pseudo-metric providing metadata about the WiFi station.
|
// Pseudo-metric providing metadata about the WiFi station.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user