Compare commits
No commits in common. "7a1df207a71c034e83ab109bd690d81f637b4889" and "6ce1fa075ace3bead9947658ee113a891ce3f823" have entirely different histories.
7a1df207a7
...
6ce1fa075a
@ -63,23 +63,61 @@ data:
|
||||
target_config:
|
||||
sync_period: 10s
|
||||
scrape_configs:
|
||||
- job_name: kubernetes-filtering
|
||||
- job_name: http-access-logs
|
||||
kubernetes_sd_configs:
|
||||
- role: pod
|
||||
pipeline_stages:
|
||||
- drop:
|
||||
source: "k8s_app"
|
||||
expression: "(konnectivity-agent|weave|kube-dns)"
|
||||
- drop:
|
||||
expression: ".*kube-probe.*"
|
||||
- json:
|
||||
expressions:
|
||||
RequestPath: RequestPath
|
||||
- labels:
|
||||
RequestPath:
|
||||
- drop:
|
||||
source: "RequestPath"
|
||||
expression: "/healthz"
|
||||
- docker: {}
|
||||
- match:
|
||||
selector: '{k8s_app="traefik-ingress-lb"}'
|
||||
stages:
|
||||
- json:
|
||||
expressions:
|
||||
RequestPath: RequestPath
|
||||
- labels:
|
||||
RequestPath:
|
||||
- match:
|
||||
selector: '{RequestPath="/healthz"}'
|
||||
action: drop
|
||||
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
|
||||
pipeline_stages:
|
||||
|
Loading…
Reference in New Issue
Block a user