mirror of https://github.com/prometheus/prometheus
Browse Source
Fail configuration unmarshalling if kubeconfig or api url are set with "own namespace" Only read namespace file if needed. Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>pull/10235/head
Julien Pivotto
3 years ago
4 changed files with 38 additions and 5 deletions
@ -0,0 +1,7 @@
|
||||
scrape_configs: |
||||
- job_name: prometheus |
||||
kubernetes_sd_configs: |
||||
- role: endpoints |
||||
api_server: 'https://localhost:1234' |
||||
namespaces: |
||||
own_namespace: true |
@ -0,0 +1,7 @@
|
||||
scrape_configs: |
||||
- job_name: prometheus |
||||
kubernetes_sd_configs: |
||||
- role: endpoints |
||||
kubeconfig_file: /home/User1/.kubeconfig |
||||
namespaces: |
||||
own_namespace: true |
Loading…
Reference in new issue