use message annotation of prometheus
This commit is contained in:
parent
cefa64e556
commit
61a1532d6e
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue