mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-29 07:29:42 -08:00
7221228843
This adds `role` field to the Kubernetes SD config, which indicates which type of Kubernetes SD should be run. This no longer allows discovering pods and nodes with the same SD configuration for example.
12 lines
199 B
YAML
12 lines
199 B
YAML
scrape_configs:
|
|
- job_name: prometheus
|
|
|
|
kubernetes_sd_configs:
|
|
- role: node
|
|
api_servers:
|
|
- 'https://localhost:1234'
|
|
|
|
bearer_token: 1234
|
|
bearer_token_file: somefile
|
|
|