Skip to content

Commit

Permalink
Fix Alertmanager URL scheme with filter (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
totoroot committed Jun 21, 2021
1 parent 2c78204 commit 730b3b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/templates/card-grafana-inspired.tmpl
Expand Up @@ -177,7 +177,7 @@ used if common `template` annotation is not `group`.
"targets": [
{
"os": "default",
"uri": "{{ .ExternalURL }}/#/alerts/silenced=true&inhibited=true&active=true?filter=%7B{{$c := counter}}{{ range $key, $value := .CommonLabels }}{{if call $c}}%22%2C%20{{ end }}{{ $key }}%3D%22{{ $value }}{{- end }}%22%7D"
"uri": "{{ .ExternalURL }}/#?alerts/silenced=true&inhibited=true&active=true&filter=%7B{{$c := counter}}{{ range $key, $value := .CommonLabels }}{{if call $c}}%22%2C%20{{ end }}{{ $key }}%3D%22{{ $value }}{{- end }}%22%7D"
}
]
}
Expand Down Expand Up @@ -266,7 +266,7 @@ used if common `template` annotation is not `group`.
"targets": [
{
"os": "default",
"uri": "{{ $externalUrl }}/#/alerts/silenced=true&inhibited=true&active=true?filter=%7B{{$c := counter}}{{ range $key, $value := $alert.Labels }}{{if call $c}}%22%2C%20{{ end }}{{ $key }}%3D%22{{ $value }}{{- end }}%22%7D"
"uri": "{{ $externalUrl }}/#?alerts/silenced=true&inhibited=true&active=true&filter=%7B{{$c := counter}}{{ range $key, $value := $alert.Labels }}{{if call $c}}%22%2C%20{{ end }}{{ $key }}%3D%22{{ $value }}{{- end }}%22%7D"
}
]
}
Expand Down

0 comments on commit 730b3b1

Please sign in to comment.