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

Only set alerting if variable is false #112

Merged
merged 2 commits into from
Nov 20, 2018

Conversation

wvh-github
Copy link
Contributor

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.

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.
@wvh-github
Copy link
Contributor Author

Copy link
Member

@paulfantom paulfantom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will happen when I set grafana_alerting to true ?

@@ -96,9 +96,9 @@ enabled = true
path = {{ grafana_data_dir }}/dashboards

# Alerting
{% if grafana_alerting %}
{% if grafana_alerting == false %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be written as if not grafana_alerting

@paulfantom paulfantom merged commit 3a72c05 into cloudalchemy:master Nov 20, 2018
@wvh-github wvh-github deleted the patch-1 branch December 6, 2018 13:24
dimavin pushed a commit to intento/ansible-grafana that referenced this pull request Jan 16, 2019
* 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
@lock
Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants