Compare commits
2 Commits
6ce1fa075a
...
7a1df207a7
Author | SHA1 | Date | |
---|---|---|---|
7a1df207a7 | |||
ea53700e02 |
@ -63,61 +63,23 @@ data:
|
|||||||
target_config:
|
target_config:
|
||||||
sync_period: 10s
|
sync_period: 10s
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: http-access-logs
|
- job_name: kubernetes-filtering
|
||||||
kubernetes_sd_configs:
|
kubernetes_sd_configs:
|
||||||
- role: pod
|
- role: pod
|
||||||
pipeline_stages:
|
pipeline_stages:
|
||||||
- docker: {}
|
- drop:
|
||||||
- match:
|
source: "k8s_app"
|
||||||
selector: '{k8s_app="traefik-ingress-lb"}'
|
expression: "(konnectivity-agent|weave|kube-dns)"
|
||||||
stages:
|
- drop:
|
||||||
|
expression: ".*kube-probe.*"
|
||||||
- json:
|
- json:
|
||||||
expressions:
|
expressions:
|
||||||
RequestPath: RequestPath
|
RequestPath: RequestPath
|
||||||
- labels:
|
- labels:
|
||||||
RequestPath:
|
RequestPath:
|
||||||
- match:
|
- drop:
|
||||||
selector: '{RequestPath="/healthz"}'
|
source: "RequestPath"
|
||||||
action: drop
|
expression: "/healthz"
|
||||||
relabel_configs:
|
|
||||||
- source_labels:
|
|
||||||
- __meta_kubernetes_pod_label_k8s_app
|
|
||||||
target_label: __service__
|
|
||||||
- source_labels:
|
|
||||||
- __meta_kubernetes_pod_node_name
|
|
||||||
target_label: __host__
|
|
||||||
- action: drop
|
|
||||||
regex: ''
|
|
||||||
source_labels:
|
|
||||||
- __service__
|
|
||||||
- action: labelmap
|
|
||||||
regex: __meta_kubernetes_pod_label_(.+)
|
|
||||||
- action: replace
|
|
||||||
replacement: $1
|
|
||||||
separator: /
|
|
||||||
source_labels:
|
|
||||||
- __meta_kubernetes_namespace
|
|
||||||
- __service__
|
|
||||||
target_label: job
|
|
||||||
- action: replace
|
|
||||||
source_labels:
|
|
||||||
- __meta_kubernetes_namespace
|
|
||||||
target_label: namespace
|
|
||||||
- action: replace
|
|
||||||
source_labels:
|
|
||||||
- __meta_kubernetes_pod_name
|
|
||||||
target_label: pod
|
|
||||||
- action: replace
|
|
||||||
source_labels:
|
|
||||||
- __meta_kubernetes_pod_container_name
|
|
||||||
target_label: container
|
|
||||||
- replacement: /var/log/pods/*$1/*.log
|
|
||||||
separator: /
|
|
||||||
source_labels:
|
|
||||||
- __meta_kubernetes_pod_uid
|
|
||||||
- __meta_kubernetes_pod_container_name
|
|
||||||
target_label: __path__
|
|
||||||
|
|
||||||
|
|
||||||
- job_name: kubernetes-pods-name
|
- job_name: kubernetes-pods-name
|
||||||
pipeline_stages:
|
pipeline_stages:
|
||||||
|
Loading…
Reference in New Issue
Block a user