Update main.go
This commit is contained in:
parent
fc346be614
commit
490d7fdfe4
|
@ -2,6 +2,7 @@ package prometheus
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
@ -30,8 +31,8 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
contentTag := request.Status
|
contentTag := request.Status
|
||||||
if len(request.Alerts.Firing) > 0 {
|
if len(request.Alerts.Firing()) > 0 {
|
||||||
contentTag += ":" + len(request.Alerts.Firing)
|
contentTag += ":" + len(request.Alerts.Firing())
|
||||||
}
|
}
|
||||||
|
|
||||||
content := fmt.Sprintf("[%s] %s", contentTag, strings.Join(request.CommonAnnotations.Values()," "))
|
content := fmt.Sprintf("[%s] %s", contentTag, strings.Join(request.CommonAnnotations.Values()," "))
|
||||||
|
|
Loading…
Reference in New Issue