Skip to content

Commit

Permalink
Remove monitored_host 'if'
Browse files Browse the repository at this point in the history
this if is superficial, since this variable is equal to host_ips
the host_ips variable is always set so we don't need to check it.
  • Loading branch information
MalloZup committed Sep 23, 2019
1 parent f879eeb commit 0ec2bb6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions salt/monitoring/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ alerting:
rule_files:
- /etc/prometheus/rules.yml

{% if grains.get('monitored_hosts') %}
scrape_configs:
- job_name: hanadb
static_configs:
Expand All @@ -36,4 +35,3 @@ scrape_configs:
{% for ip in grains['monitored_hosts'] %}
- "{{ ip }}:9002" # 9002: ha_cluster_exporter metrics
{% endfor %}
{% endif %}

0 comments on commit 0ec2bb6

Please sign in to comment.