Skip to content

Commit

Permalink
Viser beskrivelse og detaljer som defineres i alarmene
Browse files Browse the repository at this point in the history
Co-authored-by: Simen Ullern <[email protected]>
Co-authored-by: Sivert Lunsæter <[email protected]>
  • Loading branch information
3 people committed Jun 13, 2024
1 parent 70370bc commit 6bacdd3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions deploy/prod-alertmanagerconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@ spec:
[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}] {{ .CommonLabels.alertname }}
text: >-
{{ range .Alerts -}}
*Alert:* {{ .Annotations.title }}{{ if .Labels.severity }} - `{{ .Labels.severity }}`{{ end }}
*Description:* {{ .Annotations.description }}
*Details:*
{{ range .Labels.SortedPairs }} • *{{ .Name }}:* `{{ .Value }}`
{{ end }}
{{ end }}
*Beskrivelse:* {{ .Annotations.beskrivelse }}{{ "\n" }}
*Detaljer:* {{ .Annotations.detaljer }}
color: |-
{{ if eq .Status "firing" -}}
{{ if eq .CommonLabels.severity "warning" -}}
Expand Down

0 comments on commit 6bacdd3

Please sign in to comment.