added contact label

This commit is contained in:
root
2023-12-07 00:10:36 -06:00
parent 7e2c2d21b5
commit 6f34bd4d08

View File

@@ -53,4 +53,13 @@ scrape_configs:
occupancy: occupancy
source: payload
- labels:
occupancy:
occupancy:
- match:
selector: '{container="zigbee2mqtt"} |= "contact"'
stages:
- json:
expressions:
contact: contact
source: payload
- labels:
contact: