Browse Source

Merge pull request #1127 from fabric8io/kubernetes-discovery

Add Kubernetes namespace & name labels to example config
pull/1130/head
Julius Volz 9 years ago
parent
commit
4dbb3abfec
  1. 10
      documentation/examples/prometheus-kubernetes.yml

10
documentation/examples/prometheus-kubernetes.yml

@ -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…
Cancel
Save