diff --git a/promtail/promtail-config.yml b/promtail/promtail-config.yml index 8b3efd0..b5a49e7 100644 --- a/promtail/promtail-config.yml +++ b/promtail/promtail-config.yml @@ -53,4 +53,13 @@ scrape_configs: occupancy: occupancy source: payload - labels: - occupancy: \ No newline at end of file + occupancy: + - match: + selector: '{container="zigbee2mqtt"} |= "contact"' + stages: + - json: + expressions: + contact: contact + source: payload + - labels: + contact: \ No newline at end of file