-
Notifications
You must be signed in to change notification settings - Fork 67
/
kubernetes-config.yaml
25 lines (24 loc) · 970 Bytes
/
kubernetes-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
relabel_configs:
- source_labels: [__meta_process_executable_compiler]
target_label: compiler
- source_labels: [__meta_system_kernel_machine]
target_label: arch
- source_labels: [__meta_system_kernel_release]
target_label: kernel_version
- source_labels: [__meta_kubernetes_namespace]
target_label: namespace
- source_labels: [__meta_kubernetes_pod_name]
target_label: pod
- source_labels: [__meta_kubernetes_pod_container_name]
target_label: container
- source_labels: [__meta_kubernetes_pod_container_image]
target_label: container_image
- source_labels: [__meta_kubernetes_node_label_topology_kubernetes_io_region]
target_label: region
- source_labels: [__meta_kubernetes_node_label_topology_kubernetes_io_zone]
target_label: zone
- action: labelmap
regex: __meta_kubernetes_pod_label_(.+)
replacement: ${1}
- action: labeldrop
regex: apps_kubernetes_io_pod_index|controller_revision_hash|statefulset_kubernetes_io_pod_name|pod_template_hash