Removed kubernetes-cadvisor as its deprecated in k8s v1.11
Instead of cadvisor we are adviced to use telegraf kubernetes
input plugin.
Change-Id: Ic9892e2f6a2adc305e550b943a669a606010aa1e
Closes-Bug: PROD-24334
diff --git a/prometheus/files/server/prometheus.yml b/prometheus/files/server/prometheus.yml
index b461629..4bc011c 100644
--- a/prometheus/files/server/prometheus.yml
+++ b/prometheus/files/server/prometheus.yml
@@ -253,37 +253,6 @@
- action: labelmap
regex: __meta_kubernetes_node_label_(.+)
- - job_name: 'kubernetes-cadvisor'
- scheme: https
- tls_config:
- insecure_skip_verify: true
- {% if kubernetes_target.get('cert_name') %}cert_file: {{ server.dir.config_in_container }}/{{ kubernetes_target.cert_name }}{%- endif %}
- {% if kubernetes_target.get('key_name') %}key_file: {{ server.dir.config_in_container }}/{{ kubernetes_target.key_name }}{%- endif %}
- kubernetes_sd_configs:
- - api_server: {{ kubernetes_target.api_ip }}
- role: node
- tls_config:
- insecure_skip_verify: true
- {% if kubernetes_target.get('cert_name') %}cert_file: {{ server.dir.config_in_container }}/{{ kubernetes_target.cert_name }}{%- endif %}
- {% if kubernetes_target.get('key_name') %}key_file: {{ server.dir.config_in_container }}/{{ kubernetes_target.key_name }}{%- endif %}
- relabel_configs:
- {%- if server.config.environment_label is defined %}
- - source_labels: ['instance']
- target_label: environment
- replacement: {{ server.config.environment_label }}
- {%- endif %}
- - action: labelmap
- regex: __meta_kubernetes_node_label_(.+)
- - source_labels: [__address__]
- action: replace
- target_label: __address__
- regex: (.+)(?::\d+)
- replacement: $1:{{ kubernetes_target.get('cadvisor', {}).get('port', 4194) }}
- - source_labels: [__scheme__]
- action: replace
- target_label: __scheme__
- replacement: {{ kubernetes_target.get('cadvisor', {}).get('scheme', 'http') }}
-
{%- if kubernetes_target.get('endpoint', {}).get('enabled') %}
- job_name: 'kubernetes-service-endpoints'
scheme: https