Added filtering to promtail
This commit is contained in:
parent
88f91e20b6
commit
ea53700e02
@ -63,6 +63,16 @@ data:
|
|||||||
target_config:
|
target_config:
|
||||||
sync_period: 10s
|
sync_period: 10s
|
||||||
scrape_configs:
|
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
|
- job_name: kubernetes-pods-name
|
||||||
pipeline_stages:
|
pipeline_stages:
|
||||||
- docker: {}
|
- docker: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user