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
37
+
38
+
39
+
# Grafana_Message_Template Variables
40
+
create_message_template=true
41
+
message_template_name="Alert Instance Template"
42
+
message_template_content=<<EOT
43
+
{{ define "Alert Instance Template" }}
44
+
Firing: {{ .Labels.alertname }}
45
+
Silence: {{ .SilenceURL }}
46
+
{{ end }}
47
+
EOT
48
+
49
+
50
+
51
+
# Grafana_Mute_Timing Variables
52
+
create_mute_timing=true
53
+
mute_timing={
54
+
name ="My Mute Timing"
55
+
start ="04:56"
56
+
end ="04:57"
57
+
weekdays = ["monday", "tuesday:thursday"]
58
+
days_of_month = ["1:7", "-1"]
59
+
months = ["1:3", "december"]
60
+
years = []
61
+
}
62
+
63
+
64
+
65
+
66
+
# Grafana_Notification_Policy Variables
67
+
create_notification_policy=true
68
+
notification_policy_config={
69
+
group_by = ["..."]
70
+
group_wait ="45s"
71
+
group_interval ="6m"
72
+
repeat_interval ="3h"
73
+
}
74
+
75
+
76
+
policies=[]
77
+
/* policies = [
78
+
{
79
+
matchers = [
80
+
{ label = "mylabel", match = "=", value = "myvalue" },
81
+
{ label = "alertname", match = "=", value = "CPU Usage" },
82
+
{ label = "Name", match = "=~", value = "host.*|host-b.*" }
83
+
]
84
+
contact_point = "a_contact_point_1"
85
+
continue = true
86
+
mute_timings = ["mute_timing_1"]
87
+
group_by = ["group1_sub"]
88
+
},
89
+
{
90
+
matchers = [
91
+
{ label = "sublabel", match = "=", value = "subvalue" }
0 commit comments