Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Expose message property in Dropwizard health functionality #8745

Open
rorytorneymf opened this issue May 8, 2024 · 0 comments

Comments

@rorytorneymf
Copy link

rorytorneymf commented May 8, 2024

Registered Health Checks are returned on localhost:8081/healthcheck, and include a message property:

{
  "worker-alive": {
    "healthy":false,
    "message":"I am not alive failure count =2",
    "duration":0,
    "timestamp":"2024-05-08T11:26:15.079Z"
  }
}

When I configure that health check using the Health functionality, that health check is returned on localhost:8080/health-check?name=all&type=ALIVE, however, it does not include the message property:

[
  {
    "name":"worker-alive",
    "healthy":false,
    "type":"ALIVE",
    "critical":true
  }
]

I believe the response is generated via these classes:

Is there a way to make the response from localhost:8080/health-check?name=all&type=ALIVE include the message property?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant