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

Commit 3a72c05

Browse files
Wout van Heeswijkpaulfantom
authored andcommitted
Only set alerting if variable is false (#112)
* 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
1 parent 7069e71 commit 3a72c05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/grafana.ini.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ enabled = true
9696
path = {{ grafana_data_dir }}/dashboards
9797

9898
# Alerting
99-
{% if grafana_alerting %}
99+
{% if not grafana_alerting %}
100100
[alerting]
101-
enabled = True
101+
enabled = false
102102
;execute_alerts = true
103103
{% endif %}
104104

0 commit comments

Comments
 (0)