fix(infra-monitoring): alertmanager config adjust and make groupBy configurable
This commit is contained in:
parent
13b50792b9
commit
de9e1d9dce
3 changed files with 27 additions and 13 deletions
|
@ -110,16 +110,16 @@ image::https://img.shields.io/badge/Version-application-informational?style=flat
|
||||||
| `""`
|
| `""`
|
||||||
|
|
|
|
||||||
|
|
||||||
|
| alertmanager.inhibitRules
|
||||||
|
| list
|
||||||
|
| `[]`
|
||||||
|
| additional inhibitRules
|
||||||
|
|
||||||
| alertmanager.receiver.customs
|
| alertmanager.receiver.customs
|
||||||
| object
|
| object
|
||||||
| `{}`
|
| `{}`
|
||||||
| customs
|
| customs
|
||||||
|
|
||||||
| alertmanager.receiver.inhibitRules
|
|
||||||
| list
|
|
||||||
| `[]`
|
|
||||||
| additional inhibitRules
|
|
||||||
|
|
||||||
| alertmanager.receiver.matrix.default
|
| alertmanager.receiver.matrix.default
|
||||||
| string
|
| string
|
||||||
| `"!example-room:matrix.org"`
|
| `"!example-room:matrix.org"`
|
||||||
|
@ -200,12 +200,17 @@ image::https://img.shields.io/badge/Version-application-informational?style=flat
|
||||||
| `false`
|
| `false`
|
||||||
|
|
|
|
||||||
|
|
||||||
| alertmanager.receiver.repeatInterval
|
| alertmanager.route.groupBy
|
||||||
|
| list
|
||||||
|
| `["namespace","alertname"]`
|
||||||
|
| groupBy
|
||||||
|
|
||||||
|
| alertmanager.route.repeatInterval
|
||||||
| string
|
| string
|
||||||
| `"24h"`
|
| `"24h"`
|
||||||
| repeat Interval
|
| repeat Interval
|
||||||
|
|
||||||
| alertmanager.receiver.routes
|
| alertmanager.route.routes
|
||||||
| list
|
| list
|
||||||
| `[]`
|
| `[]`
|
||||||
| would overwrite defaults (like ntfy or matrix) # send every alert to ntfy # (and continue to routing for that alert) - receiver: "ntfy-default" continue: true # send selected alerts to special matrix room # (and remove them for evaluation - no continue) - receiver: "matrix-room-name" matchers: - name: "team" matchType: "=" value: "room-name" # all reminig alerts to matrix default room - receiver: "matrix-default"
|
| would overwrite defaults (like ntfy or matrix) # send every alert to ntfy # (and continue to routing for that alert) - receiver: "ntfy-default" continue: true # send selected alerts to special matrix room # (and remove them for evaluation - no continue) - receiver: "matrix-room-name" matchers: - name: "team" matchType: "=" value: "room-name" # all reminig alerts to matrix default room - receiver: "matrix-default"
|
||||||
|
|
|
@ -106,17 +106,19 @@ spec:
|
||||||
route:
|
route:
|
||||||
groupWait: "30s"
|
groupWait: "30s"
|
||||||
groupInterval: "10m"
|
groupInterval: "10m"
|
||||||
|
{{- with .Values.alertmanager.route.groupBy }}
|
||||||
groupBy:
|
groupBy:
|
||||||
- "namespace"
|
{{- toYaml . | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
receiver: "null"
|
receiver: "null"
|
||||||
repeatInterval: {{ .Values.alertmanager.receiver.repeatInterval }}
|
repeatInterval: {{ .Values.alertmanager.route.repeatInterval }}
|
||||||
routes:
|
routes:
|
||||||
- receiver: "null"
|
- receiver: "null"
|
||||||
matchers:
|
matchers:
|
||||||
- name: "alertname"
|
- name: "alertname"
|
||||||
matchType: "=~"
|
matchType: "=~"
|
||||||
value: "InfoInhibitor|Watchdog"
|
value: "InfoInhibitor|Watchdog"
|
||||||
{{- with .Values.alertmanager.receiver.routes }}
|
{{- with .Values.alertmanager.route.routes }}
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
{{- end }}{{/* end-with routes */}}
|
{{- end }}{{/* end-with routes */}}
|
||||||
- receiver: "default"
|
- receiver: "default"
|
||||||
|
|
|
@ -64,7 +64,10 @@ alertmanager:
|
||||||
anonymous:
|
anonymous:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
receiver:
|
# -- additional inhibitRules
|
||||||
|
inhibitRules: []
|
||||||
|
|
||||||
|
route:
|
||||||
# -- would overwrite defaults (like ntfy or matrix)
|
# -- would overwrite defaults (like ntfy or matrix)
|
||||||
# # send every alert to ntfy
|
# # send every alert to ntfy
|
||||||
# # (and continue to routing for that alert)
|
# # (and continue to routing for that alert)
|
||||||
|
@ -80,10 +83,14 @@ alertmanager:
|
||||||
# # all reminig alerts to matrix default room
|
# # all reminig alerts to matrix default room
|
||||||
# - receiver: "matrix-default"
|
# - receiver: "matrix-default"
|
||||||
routes: []
|
routes: []
|
||||||
# -- additional inhibitRules
|
# -- groupBy
|
||||||
inhibitRules: []
|
groupBy:
|
||||||
|
- namespace
|
||||||
|
- alertname
|
||||||
# -- repeat Interval
|
# -- repeat Interval
|
||||||
repeatInterval: "24h"
|
repeatInterval: "24h"
|
||||||
|
|
||||||
|
receiver:
|
||||||
# -- customs
|
# -- customs
|
||||||
customs: {}
|
customs: {}
|
||||||
matrix:
|
matrix:
|
||||||
|
|
Loading…
Add table
Reference in a new issue