Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
fix wrong format config file (#829) (#844)
Browse files Browse the repository at this point in the history
* fix wrong format config file
  • Loading branch information
liubo0127 authored Jul 23, 2019
1 parent 9452f01 commit c30e2c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions roles/prometheus/templates/prometheus.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ scrape_configs:
{% set _ = drainer_addrs.append("%s:%s" % (drainer_ip, drainer_port)) -%}
{% endfor %}

{% if kafka_exporter_host -%}
{% if kafka_exporter_host %}
- job_name: 'kafka_exporter'
honor_labels: true # don't overwrite job & instance labels
static_configs:
Expand Down Expand Up @@ -212,15 +212,15 @@ scrape_configs:
params:
module: [tcp_connect]
static_configs:
{% if kafka_addrs | default("") -%}
{% if kafka_addrs | default("") %}
- targets:
{% for kafka_addr in (kafka_addrs | default("")).split(',') | unique %}
- '{{ kafka_addr }}'
{% endfor %}
labels:
group: 'kafka'
{% endif %}
{% if zookeeper_addrs | default("") -%}
{% if zookeeper_addrs | default("") %}
- targets:
{% for zoo_addr in (zookeeper_addrs | default("")).split(',') | unique %}
- '{{ zoo_addr }}'
Expand All @@ -240,7 +240,7 @@ scrape_configs:
{% endfor %}
labels:
group: 'drainer'
{% if kafka_exporter_host -%}
{% if kafka_exporter_host %}
- targets:
- '{{ kafka_exporter_host }}:{{ kafka_exporter_port }}'
labels:
Expand Down

0 comments on commit c30e2c1

Please sign in to comment.