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