Merge pull request #14853 from papamoose/prometheus-add-friendlyname

prometheus: add 'friendlyname' to tasmota_info
This commit is contained in:
Theo Arends 2022-02-15 09:06:26 +01:00 committed by GitHub
commit f85c4b5e31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -200,6 +200,7 @@ void HandleMetrics(void) {
PSTR("image"), TasmotaGlobal.image_name,
PSTR("build_timestamp"), GetBuildDateAndTime().c_str(),
PSTR("devicename"), SettingsText(SET_DEVICENAME),
PSTR("friendlyname"), SettingsText(SET_FRIENDLYNAME1),
nullptr);
WritePromMetricInt32(PSTR("uptime_seconds"), kPromMetricGauge, TasmotaGlobal.uptime, nullptr);