From bb791375c685bba0bf30c8d275f5b741d55034a5 Mon Sep 17 00:00:00 2001 From: Bartosz Kupidura Date: Fri, 12 May 2017 17:30:35 +0200 Subject: [PATCH] Disable by default kubernetes and dns target Change-Id: Ie5ad3d8b630d2e634f143099641f06aa9f75e30f --- prometheus/files/prometheus.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheus/files/prometheus.yml b/prometheus/files/prometheus.yml index 594bdba..c199994 100644 --- a/prometheus/files/prometheus.yml +++ b/prometheus/files/prometheus.yml @@ -43,7 +43,7 @@ scrape_configs: {%- endif %} {%- 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 %} - job_name: 'kubernetes-api' scheme: https @@ -164,7 +164,7 @@ scrape_configs: target_label: kubernetes_pod_name {%- 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', []) %} - job_name: {{ target.name }} dns_sd_configs: