added contact label

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

View File

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