-
Notifications
You must be signed in to change notification settings - Fork 72
/
alertmanager-values.yaml
52 lines (52 loc) · 1.35 KB
/
alertmanager-values.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
alertmanager:
config:
global:
resolve_timeout: 5m
inhibit_rules:
- source_matchers:
- 'severity = critical'
target_matchers:
- 'severity =~ warning|info'
equal:
- 'namespace'
- 'alertname'
- source_matchers:
- 'severity = warning'
target_matchers:
- 'severity = info'
equal:
- 'namespace'
- 'alertname'
- source_matchers:
- 'alertname = InfoInhibitor'
target_matchers:
- 'severity = info'
equal:
- 'namespace'
route:
group_by: ['namespace']
group_wait: 30s
group_interval: 5m
repeat_interval: 12h
receiver: 'null'
routes:
- receiver: 'null'
matchers:
- alertname =~ "InfoInhibitor|Watchdog"
- continue: true
match_re:
severity: critical
receiver: "slack"
receivers:
- name: 'null'
- name: "slack"
slack_configs:
- channel: "<channel-name>"
send_resolved: true
api_url: "<api-url>"
icon_emoji: ":ghost:"
title: '{{ template "__subject" . }}'
title_link: 'https://grafana.<cluster-domain>'
text: '{{ range .Alerts }}`}}<!channel>{{`{{- "\n" -}}`}}{{`{{ .Annotations.description }}`}}{{`{{- "\n" -}}`}}{{`{{ end }}'
templates:
- '/etc/alertmanager/config/*.tmpl'