Disable by default kubernetes and dns target
Change-Id: Ie5ad3d8b630d2e634f143099641f06aa9f75e30f
This commit is contained in:
parent
953510a4d8
commit
bb791375c6
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ scrape_configs:
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
{%- if server.get('target', {}).get('kubernetes', {}).get('enabled', True) %}
|
{%- if server.get('target', {}).get('kubernetes', {}).get('enabled', False) %}
|
||||||
{%- set kubernetes_target = server.target.kubernetes %}
|
{%- set kubernetes_target = server.target.kubernetes %}
|
||||||
- job_name: 'kubernetes-api'
|
- job_name: 'kubernetes-api'
|
||||||
scheme: https
|
scheme: https
|
||||||
|
@ -164,7 +164,7 @@ scrape_configs:
|
||||||
target_label: kubernetes_pod_name
|
target_label: kubernetes_pod_name
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{%- if server.get('target', {}).get('dns', {}).get('enabled', True) %}
|
{%- if server.get('target', {}).get('dns', {}).get('enabled', False) %}
|
||||||
{%- for target in server.get('target', {}).get('dns', {}).get('endpoint', []) %}
|
{%- for target in server.get('target', {}).get('dns', {}).get('endpoint', []) %}
|
||||||
- job_name: {{ target.name }}
|
- job_name: {{ target.name }}
|
||||||
dns_sd_configs:
|
dns_sd_configs:
|
||||||
|
|
Loading…
Reference in a new issue