Closed
Description
With many monitoring tools, the best granularity I can get is "something is broken", using the current health check actuator -- many tools won't show the resulting JSON, and just monitor the HTTP status code.
Additionally, if my monitoring system detects that some part of the system is unhealthy, it's possible that additional failures could go unnoticed, because there would be no additional alarms for my "/health" check.
For both of these reasons, I'd like to suggest adding support for querying the health of specific health indicator; for example:
GET /health
:
{"status": "UP", "mail":{"status": "UP", "location": "localhost:25"}, "db": {"status": "UP", "database": "MySQL", "hello": 1}}
GET /health/mail
:
{"status": "UP", "location": "localhost:25"}
GET /health/db
:
{"status": "UP", "database": "MySQL", "hello": 1}
This may prove to be a more straightforward solution to the requirements of #3441 & #2652 as well.