Skip to content

Non 200 response when a service is down? #999

Closed Answered by TwiN
srinisubramanian asked this question in Q&A
Discussion options

You must be logged in to vote

I understand what you're suggesting, but I personally am not a big fan of this kind of approach; the API is expected to return 2xx if it works as intended, and it does work as intended even if some endpoints it monitors are unhealthy. If it returns 5xx, then I wouldn't consider that as meaning "the endpoints monitored by Gatus are failing", but instead, "Gatus is not working as intended".

I'd suggest you look into jsonpath or even regex or normal string matching. All of those should allow you to check the body for unhealthy endpoints.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TwiN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
wontfix This will not be worked on
2 participants