alertmanager-discord icon indicating copy to clipboard operation
alertmanager-discord copied to clipboard

Is there a health check endpoint or a function test?

Open skiwheelr opened this issue 3 years ago • 1 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.

skiwheelr avatar May 05 '21 19:05 skiwheelr

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

benjojo avatar May 05 '21 19:05 benjojo