mirror of https://github.com/prometheus/prometheus
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
parent
c85efa02d9
commit
9d63502204
@ -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