From 5fc34dafe8d65860b275efa66de946aa7abfb41e Mon Sep 17 00:00:00 2001 From: Till JS Date: Mon, 30 Mar 2026 19:50:04 +0200 Subject: [PATCH] fix(promtail): move monitoring drop from relabel to pipeline_stages relabel drop removed the entire stream before labels were set, causing the "at least one label pair required" error. pipeline_stages drop runs after labels are established, which is correct for filtering by tier. Co-Authored-By: Claude Opus 4.6 (1M context) --- docker/promtail/config.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docker/promtail/config.yaml b/docker/promtail/config.yaml index 8f0380399..2f60f600e 100644 --- a/docker/promtail/config.yaml +++ b/docker/promtail/config.yaml @@ -82,12 +82,11 @@ scrape_configs: target_label: "tier" replacement: "other" - # Drop monitoring container logs to save space (they're noisy) - - source_labels: ["tier"] - regex: "monitoring" - action: drop - pipeline_stages: + # Drop monitoring container logs to save space (they're noisy) + - match: + selector: '{tier="monitoring"}' + action: drop # Try to parse JSON logs (Go services, Hono services) - json: expressions: