Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Commit

Permalink
Only set alerting if variable is false (#112)
Browse files Browse the repository at this point in the history
* Only set alerting if variable is false

The current configuration template doesn't allow for disabling the alerting. It is enabled by default. This small patch makes sure we can disable the alerting.

* implement use of 'if not' conditional
  • Loading branch information
Wout van Heeswijk authored and paulfantom committed Nov 20, 2018
1 parent 7069e71 commit 3a72c05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/grafana.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ enabled = true
path = {{ grafana_data_dir }}/dashboards

# Alerting
{% if grafana_alerting %}
{% if not grafana_alerting %}
[alerting]
enabled = True
enabled = false
;execute_alerts = true
{% endif %}

Expand Down

0 comments on commit 3a72c05

Please sign in to comment.