Added filtering to promtail

This commit is contained in:
Marcus Noble 2021-06-18 18:48:35 +01:00
parent 88f91e20b6
commit ea53700e02

View File

@ -63,6 +63,16 @@ data:
target_config:
sync_period: 10s
scrape_configs:
- job_name: kubernetes-filtering
kubernetes_sd_configs:
- role: pod
pipeline_stages:
- drop:
source: "k8s_app"
expression: "(konnectivity-agent|weave|kube-dns)"
- drop:
expression: ".*kube-probe.*"
- job_name: kubernetes-pods-name
pipeline_stages:
- docker: {}