You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Use { template "Alert Instance Template" . } or any other template if you plan # to create one. Otherwise, remove it from the text section of Slack in the above example
@@ -40,17 +39,17 @@ slack_contact_point =
40
39
create_message_template=true
41
40
message_template_name="Alert Instance Template"
42
41
message_template_content=<<EOT
43
-
{ define "Alert Instance Template" }
44
-
Firing: { .Labels.alertname }
45
-
Silence: { .SilenceURL }
46
-
{ end }
42
+
{{ define "Alert Instance Template" }}
43
+
Firing: {{ .Labels.alertname }}
44
+
Silence: {{ .SilenceURL }}
45
+
{{ end }}
47
46
EOT
47
+
48
48
49
49
50
50
# Grafana_Mute_Timing Variables
51
51
create_mute_timing=true
52
-
mute_timing=
53
-
{
52
+
mute_timing={
54
53
name ="My Mute Timing"
55
54
start ="04:56"
56
55
end ="04:57"
@@ -65,8 +64,7 @@ mute_timing =
65
64
66
65
# Grafana_Notification_Policy Variables
67
66
create_notification_policy=true
68
-
notification_policy_config=
69
-
{
67
+
notification_policy_config={
70
68
group_by = ["..."]
71
69
group_wait ="45s"
72
70
group_interval ="6m"
@@ -76,9 +74,8 @@ notification_policy_config =
76
74
77
75
policies=[]
78
76
/* policies = [
79
-
80
-
{
81
-
matchers = [
77
+
{
78
+
matchers = [
82
79
{ label = "mylabel", match = "=", value = "myvalue" },
83
80
{ label = "alertname", match = "=", value = "CPU Usage" },
84
81
{ label = "Name", match = "=~", value = "host.*|host-b.*" }
0 commit comments