use message annotation of prometheus

This commit is contained in:
Martin/Geno 2019-06-20 07:13:22 +02:00
parent cefa64e556
commit 61a1532d6e
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,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["description"]; ok { if description, ok := a.Annotations["message"]; ok {
content = fmt.Sprintf("%s\n%s", content, description) content = fmt.Sprintf("%s\n%s", content, description)
} }
} }