-
Notifications
You must be signed in to change notification settings - Fork 13
/
alertmanager-main.yaml
70 lines (67 loc) · 1.89 KB
/
alertmanager-main.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
annotations:
name: alertmanager-main
namespace: monitoring
spec:
template:
data:
alertmanager.yaml: |
global:
resolve_timeout: 5m
inhibit_rules:
- "equal":
- "namespace"
- "alertname"
"source_matchers":
- "severity = critical"
"target_matchers":
- "severity =~ warning|info"
- "equal":
- "namespace"
- "alertname"
"source_matchers":
- "severity = warning"
"target_matchers":
- "severity = info"
- "equal":
- "namespace"
"source_matchers":
- "alertname = InfoInhibitor"
"target_matchers":
- "severity = info"
route:
group_by:
- 'namespace'
group_wait: 10s
group_interval: 10s
repeat_interval: 1h
receiver: 'obmondo'
routes:
- receiver: 'obmondo'
matchers:
- "alertname = Watchdog"
- receiver: 'null'
matchers:
- "alertname = InfoInhibitor"
- receiver: obmondo
continue: true
receivers:
- name: "null"
- name: obmondo
webhook_configs:
- url: https://alerts.obmondo.com/hooks/alertmanager
send_resolved: true
max_alerts: 0
http_config:
tls_config:
server_name: alerts.obmondo.com
cert_file: /etc/alertmanager/secrets/obmondo-clientcert/tls.crt
key_file: /etc/alertmanager/secrets/obmondo-clientcert/tls.key
insecure_skip_verify: false
templates:
- /etc/alertmanager/config/*.tmpl
metadata:
name: alertmanager-main
namespace: monitoring