benjojo / alertmanager-discord

Take your alertmanager alerts, into discord

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a health check endpoint or a function test?

skiwheelr opened this issue · comments

I need some way to test if this is relaying the message to discord. Would the following prometheus call work?

{
"version": "4",
"groupKey": "keygroup",
"status": "firing",
"receiver": "receiver1",
"groupLabels": null,
"commonLabels": null,
"commonAnnotations": null,
"externalURL": "am",
"alerts": [
{
"status": "firing",
"labels": null,
"annotations": null,
"startsAt": "",
"endsAt": "",
"generatorURL": "url"
},
]
}

Right now it returns an empty response body, so i have no idea if this is working.

What are you looking for in your health check? that the service can handle HTTP requests, or that it can reach discord?

I can think of some quirky way to test both, but I'm interested in what is useful to you