Skip to content

Commit

Permalink
Update default.tmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
venkatamutyala authored Mar 16, 2023
1 parent 044c535 commit fda9c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion customizations/template/default.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ define "__alertmanager" }}Alertmanager{{ end }}
{{ define "__alertmanagerURL" }}{{ .ExternalURL }}?alertState=firing&queryString=%7Balertname%3D"{{ with index .GroupLabels "alertname" }}{{ . }}{{ end }}"%7D{{ end }}
{{ define "__alertmanagerURL" }}{{ .ExternalURL }}{{ with index .GroupLabels "alertname" }}?alertState=firing&queryString=%7Balertname%3D"{{ . }}"%7D{{ end }}{{ end }}

{{ define "__subject" }}[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}] {{ .GroupLabels.SortedPairs.Values | join " " }} {{ if gt (len .CommonLabels) (len .GroupLabels) }}({{ with .CommonLabels.Remove .GroupLabels.Names }}{{ .Values | join " " }}{{ end }}){{ end }}{{ end }}
{{ define "__description" }}{{ end }}
Expand Down

0 comments on commit fda9c1f

Please sign in to comment.