1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

Add more prometheus metrics (#7683)

This commit is contained in:
Jordan Zucker
2024-10-28 20:43:02 -07:00
committed by GitHub
parent 444c0fc67f
commit 90b076eccd
3 changed files with 64 additions and 0 deletions

View File

@@ -13,9 +13,23 @@ sensor:
}
update_interval: 60s
text_sensor:
- platform: template
id: template_text_sensor1
lambda: |-
if (millis() > 10000) {
return {"Hello World"};
} else {
return {"Goodbye (cruel) World"};
}
update_interval: 60s
prometheus:
include_internal: true
relabel:
template_sensor1:
id: hellow_world
name: Hello World
template_text_sensor1:
id: hello_text
name: Text Substitution