snapshot of 82e970afb581494c2d30c99b177f854ed4a00f96 Annotations recorded against the manifests that run this cluster. https://github.com/janpuc/home-ops

kubernetes/apps/observability/kube-prometheus-stack/app/alertmanagerconfig.yaml

1 ---
2 # yaml-language-server: $schema=https://k8s-schemas.home-operations.com/monitoring.coreos.com/alertmanagerconfig_v1alpha1.json
3 apiVersion: monitoring.coreos.com/v1alpha1
4 kind: AlertmanagerConfig
5 metadata:
6 name: alertmanager
7 spec:
8 route:
9 receiver: pushover
10 repeatInterval: 12h
11 routes:
12 - receiver: blackhole
13 matchers:
14 - name: alertname
15 value: Watchdog
16 matchType: =
17 - receiver: blackhole
18 matchers:
19 - name: alertname
20 value: InfoInhibitor
21 matchType: =
22 - receiver: agents
23 continue: true
24 matchers:
25 - name: alertname
26 value: Watchdog|InfoInhibitor
27 matchType: "!~"
28 - receiver: pushover
29 matchers:
30 - name: severity
31 value: critical
32 matchType: =
33 groupBy:
34 - alertname
35 - cluster
36 - job
37 groupInterval: 5m
38 groupWait: 1m
39
40 inhibitRules:
41 - equal:
42 - alertname
43 - namespace
44 sourceMatch:
45 - name: severity
46 value: critical
47 matchType: =
48 targetMatch:
49 - name: severity
50 value: warning
51 matchType: =
52
53 receivers:
54 - name: blackhole
55 - name: agents
56 webhookConfigs:
57 - url: http://dispatch-operator.ai.svc.cluster.local:9080/hooks/alertmanager
58 sendResolved: false
59 - name: pushover
60 pushoverConfigs:
61 - html: true
62 message: |-
63 {{- range .Alerts }}
64 {{- if ne .Annotations.description "" }}
65 {{ .Annotations.description }}
66 {{- else if ne .Annotations.summary "" }}
67 {{ .Annotations.summary }}
68 {{- else if ne .Annotations.message "" }}
69 {{ .Annotations.message }}
70 {{- else }}
71 Alert description not available
72 {{- end }}
73 {{- if gt (len .Labels.SortedPairs) 0 }}
74 <small>
75 {{- range .Labels.SortedPairs }}
76 <b>{{ .Name }}:</b> {{ .Value }}
77 {{- end }}
78 </small>
79 {{- end }}
80 {{- end }}
81 monospace: false
82 priority: |-
83 {{ if eq .Status "firing" }}1{{ else }}0{{ end }}
84 sendResolved: true
85 sound: gamelan
86 title: >-
87 [{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}] {{ .CommonLabels.alertname }}
88 ttl: 86400s
89 token:
90 name: alertmanager-secret
91 key: ALERTMANAGER_PUSHOVER_TOKEN
92 userKey:
93 name: alertmanager-secret
94 key: PUSHOVER_USER_KEY
95 urlTitle: View in Alertmanager

Find an annotation

Search file paths, rationale, kinds, and authors.

↑↓ moveEnter openEsc close