mirror of
https://github.com/prometheus/prometheus
synced 2025-01-27 09:53:57 +00:00
Add roles to prometheus kubernetes example
Needed with Prometheus 1.0
This commit is contained in:
parent
c3a7941da7
commit
58a3771e49
@ -32,6 +32,7 @@ scrape_configs:
|
|||||||
- api_servers:
|
- api_servers:
|
||||||
- 'https://kubernetes.default.svc'
|
- 'https://kubernetes.default.svc'
|
||||||
in_cluster: true
|
in_cluster: true
|
||||||
|
role: apiserver
|
||||||
|
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [__meta_kubernetes_role]
|
- source_labels: [__meta_kubernetes_role]
|
||||||
@ -60,6 +61,7 @@ scrape_configs:
|
|||||||
- api_servers:
|
- api_servers:
|
||||||
- 'https://kubernetes.default.svc'
|
- 'https://kubernetes.default.svc'
|
||||||
in_cluster: true
|
in_cluster: true
|
||||||
|
role: endpoint
|
||||||
|
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [__meta_kubernetes_role, __meta_kubernetes_service_annotation_prometheus_io_scrape]
|
- source_labels: [__meta_kubernetes_role, __meta_kubernetes_service_annotation_prometheus_io_scrape]
|
||||||
@ -106,6 +108,7 @@ scrape_configs:
|
|||||||
- api_servers:
|
- api_servers:
|
||||||
- 'https://kubernetes.default.svc'
|
- 'https://kubernetes.default.svc'
|
||||||
in_cluster: true
|
in_cluster: true
|
||||||
|
role: service
|
||||||
|
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [__meta_kubernetes_role, __meta_kubernetes_service_annotation_prometheus_io_probe]
|
- source_labels: [__meta_kubernetes_role, __meta_kubernetes_service_annotation_prometheus_io_probe]
|
||||||
@ -139,6 +142,7 @@ scrape_configs:
|
|||||||
- api_servers:
|
- api_servers:
|
||||||
- 'https://kubernetes.default.svc'
|
- 'https://kubernetes.default.svc'
|
||||||
in_cluster: true
|
in_cluster: true
|
||||||
|
role: pod
|
||||||
|
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [__meta_kubernetes_role, __meta_kubernetes_pod_annotation_prometheus_io_scrape]
|
- source_labels: [__meta_kubernetes_role, __meta_kubernetes_pod_annotation_prometheus_io_scrape]
|
||||||
|
Loading…
Reference in New Issue
Block a user