Skip to content

Commit 3e529d4

Browse files
authored
add template conditional around the pihole exporter (#447)
1 parent f36b450 commit 3e529d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/prometheus.yml.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ scrape_configs:
7272
- job_name: 'node'
7373
static_configs:
7474
- targets: {{ prometheus_node_exporter_targets | to_yaml }}
75-
75+
{% if pihole_enable %}
7676
- job_name: 'pihole-exporter'
7777
static_configs:
7878
- targets: ['pihole:9617']
79+
{% endif %}
7980

8081
{% filter indent(width=2,first=True) %}
8182
{{ prometheus_extra_scrape_configs }}

0 commit comments

Comments
 (0)