Merge pull request #8814 from mhansen/flash_writes

Add tasmota_flash_writes_total to Prometheus
This commit is contained in:
Theo Arends 2020-06-29 08:42:08 +02:00 committed by GitHub
commit e635b552bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,6 +40,7 @@ void HandleMetrics(void)
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_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.