Added some debugging
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
parent
fe5425ca50
commit
26e202f817
@ -15,6 +15,8 @@ func HandleAlertmanagerPayloadPost(c *fiber.Ctx) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println("Got alertmanager payload")
|
||||||
|
fmt.Println(payload)
|
||||||
for _, alert := range payload.Alerts {
|
for _, alert := range payload.Alerts {
|
||||||
message := ""
|
message := ""
|
||||||
if alert.Status == "firing" {
|
if alert.Status == "firing" {
|
||||||
|
Loading…
Reference in New Issue
Block a user