Provide HTTP status for external probe tools #87
themightychris
started this conversation in
Ideas
Replies: 2 comments
-
Feel free to send a PR to add this to the package. Make sure to include tests and update docs. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@themightychris are you working on this ? We can team up if you want |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Many external health probe tools, like Kubernetes' HTTP probes, need to be able to simply check whether the HTTP response status is 2xx or 3xx to know if the system is healthy. The current response body for the JSON endpoint is too complex for many systems to read, an external tool would have to parse and loop through the json to make a healthy/unhealthy determination
Similar to the
--fail-command-on-failing-check
option for the CLI check, an optional query param for the JSON check to make it return a503
status instead of a200
status if any checks are failing would be very helpfulBeta Was this translation helpful? Give feedback.
All reactions