seq-input-healthcheck
seq-input-healthcheck copied to clipboard
Allow configuring "follow redirects", allowed HTTP status codes and "skip content"
We are using Seq as our log repository and today I evaluated whether we can use it for health checks too.
The app seemed working as documented but it's missing some configuration options to make it suitable for our use. Especially in cases where there's no dedicated health check endpoint and the only available endpoint is the root url.
"Follow redirects" -> sometimes apps redirect to login or access denied page which is OK from health check perspective.
"Allowed HTTP status codes" -> sometimes codes such as 302 and 401 are completely valid, so it would be nice to be able to configure these instead of hard-coded range (200-299).
"Skip content" -> sometimes HTTP status code is enough and there's no need to download the response content.
With these improvements the app will be much more usable.
Thanks for the suggestions.
At the moment we're keeping this app fairly simple (it's usually possible to find a valid health check target that returns a success status code and minimal content), but if this doesn't work well for you, building a custom version of the app package may be a useful option, too - let me know if you decide to give that a shot, and need any help with it.
We'll definitely consider your suggested additions when we start planning the next version of the app, though 👍
#28 implements "follow redirects" and will be published as 2.1.0; would be great to get some feedback on it, if you're able to take a look.