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
This commit is contained in:
Mateusz Matuszkowiak 2018-10-24 12:32:16 +02:00
parent 977ddea416
commit f945e6091b

View file

@ -253,37 +253,6 @@ scrape_configs:
- action: labelmap - action: labelmap
regex: __meta_kubernetes_node_label_(.+) 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') %} {%- if kubernetes_target.get('endpoint', {}).get('enabled') %}
- job_name: 'kubernetes-service-endpoints' - job_name: 'kubernetes-service-endpoints'
scheme: https scheme: https