prometheus: rename annotation message to summary

This commit is contained in:
genofire 2020-07-03 20:11:11 +02:00
parent c3e907f3f3
commit 1babcc195c
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ func init() {
firingAlerts := request.Alerts.Firing() firingAlerts := request.Alerts.Firing()
if len(firingAlerts) > 0 { if len(firingAlerts) > 0 {
for _, a := range firingAlerts { for _, a := range firingAlerts {
if description, ok := a.Annotations["message"]; ok { if description, ok := a.Annotations["summary"]; ok {
content = fmt.Sprintf("%s\n%s", content, description) content = fmt.Sprintf("%s\n%s", content, description)
html = fmt.Sprintf("%s<br/>%s", html, description) html = fmt.Sprintf("%s<br/>%s", html, description)
} }