add loki.process filter to drop fsnotify/inotify noise logs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user