-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(grafana_terraform): fix backslashes
- Loading branch information
1 parent
cb37f64
commit 1c2c7f4
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,18 +3,19 @@ | |
grafana_connection = { | ||
"url" = "http://localhost:8080", | ||
"auth" = "" | ||
} | ||
} | ||
|
||
|
||
|
||
# Grafana_Contact_Point Variables | ||
create_contact_point = true | ||
contact_point_name = "My Contact Point" | ||
use_email = true | ||
use_email = false | ||
use_slack = true | ||
email_contact_point = { | ||
addresses = ["[email protected]", "[email protected]"] | ||
message = "{ len .Alerts.Firing } firing." | ||
subject = "{{ template "default.title" .}}" | ||
subject = "{{ template \"default.title\" .}}" | ||
single_email = true | ||
disable_resolve_message = false | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ def grafana_tfvars(input): | |
} | ||
""" | ||
subject = "{{ template \"default.title\" .}}" | ||
subject = "{{ template \\\"default.title\\\" .}}" | ||
message_template_content = """<<EOT | ||
{{ define "Alert Instance Template" }} | ||
Firing: {{ .Labels.alertname }} | ||
|
@@ -81,7 +81,8 @@ def grafana_tfvars(input): | |
# Grafana_Contact_Point Variables | ||
create_contact_point = false | ||
contact_point_name = "My Contact Point" | ||
use_email = false | ||
use_slack = false | ||
email_contact_point = {{ | ||
addresses = ["[email protected]", "[email protected]"] | ||
message = "{{ len .Alerts.Firing }} firing." | ||
|