From 4f657d5001e66e73343c274ad99698375facab49 Mon Sep 17 00:00:00 2001 From: Alexander Rogov Date: Fri, 26 Jun 2026 20:11:32 +0300 Subject: [PATCH] add loki.process filter to drop fsnotify/inotify noise logs --- argocd/apps/alloy.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/argocd/apps/alloy.yaml b/argocd/apps/alloy.yaml index 9ccbd71..52542a3 100644 --- a/argocd/apps/alloy.yaml +++ b/argocd/apps/alloy.yaml @@ -83,10 +83,20 @@ spec: } } + // Filter out noisy fsnotify/inotify errors from Loki and ArgoCD + loki.process "filter" { + forward_to = [loki.write.loki.receiver] + + stage.drop { + expression = ".*fsnotify.*|.*too many open files.*|.*inotify.*" + drop_counter_reason = "inotify_noise" + } + } + // Collect logs from Kubernetes pods using the Kubernetes API loki.source.kubernetes "pods" { targets = discovery.relabel.pods.output - forward_to = [loki.write.loki.receiver] + forward_to = [loki.process.filter.receiver] } // Write logs to Loki