{{define "head"}}
{{end}}
{{define "content"}}
Alerts
{{$alertStateToRowClass := .AlertStateToRowClass}}
{{range .Groups}}
{{.File}} > {{.Name}}
|
{{range .AlertingRules}}
{{$activeAlerts := .ActiveAlerts}}
{{.HTMLSnippet pathPrefix}}
{{if $activeAlerts}}
Labels |
State |
Active Since |
Value |
{{range $activeAlerts}}
{{range $label, $value := .Labels.Map}}
{{$label}}="{{$value}}"
{{end}}
|
{{.State}} |
{{.ActiveAt.UTC}} |
{{.Value}} |
{{ if .Annotations.Map}}
Annotations |
{{range $label, $value := .Annotations.Map}}
- {{$label}}
- {{$value}}
{{end}}
|
{{end}}
{{end}}
{{end}}
|
{{end}}
{{else}}
No alerting rules defined
|
{{end}}
{{end}}