From 76f3111cb45e25d529d206c461a3862328a57346 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Wed, 29 Nov 2023 20:51:25 -0600 Subject: [PATCH] added occupancy label --- promtail/promtail-config.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/promtail/promtail-config.yml b/promtail/promtail-config.yml index 557ee75..e22fec1 100644 --- a/promtail/promtail-config.yml +++ b/promtail/promtail-config.yml @@ -44,3 +44,12 @@ scrape_configs: stages: - labels: action: "payload" + - match: + selector: '{container="zigbee2mqtt"} |= "occupancy"' + stages: + - json: + expressions: + occupancy: occupancy + source: payload + - labels: + occupancy: \ No newline at end of file