mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 06:17:27 -08:00
Add Kubernetes namespace & name labels to example config
This commit is contained in:
parent
bf4e4a8ff0
commit
1976dfe634
|
@ -80,3 +80,13 @@ scrape_configs:
|
|||
regex: ^(.+)$
|
||||
target_label: kubernetes_role
|
||||
replacement: $1
|
||||
- source_labels: [__meta_kubernetes_service_namespace]
|
||||
action: replace
|
||||
regex: ^(.+)$
|
||||
target_label: kubernetes_namespace
|
||||
replacement: $1
|
||||
- source_labels: [__meta_kubernetes_service_name]
|
||||
action: replace
|
||||
regex: ^(.+)$
|
||||
target_label: kubernetes_name
|
||||
replacement: $1
|
||||
|
|
Loading…
Reference in a new issue