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