prometheus/config/testdata/kubernetes_bearertoken.bad.yml
Fabian Reinartz 7221228843 discovery/kubernetes: select between discovery role
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.
2016-07-05 14:22:12 +02:00

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