spring-cloud-consul icon indicating copy to clipboard operation
spring-cloud-consul copied to clipboard

Register new HealthIndicator fails

Open abderraza8k opened this issue 9 years ago • 2 comments

I'm trying to register a Database health indicator to make it appear into the /health payload. when only adding the actuatordependency including the spring-cloud-starter-consul-discoveryonly the following payload is returned

{
"description": "Spring Cloud Consul Discovery Client",
"status": "UP"
}

after adding one or many healthIndicator implementation only the following appears.

{
"status": "UP"
}

here's a minimal sample

It looks that the HealthAggregatorisn`t used or something I could not figure out. Thanks

abderraza8k avatar Mar 01 '17 09:03 abderraza8k

why do you think it fails? By default, spring boot doesn't display details.

spencergibb avatar Mar 01 '17 16:03 spencergibb

I removed the spring-cloud-consul dependency and have the same behaviour. looks I missed something. thanks

abderraza8k avatar Mar 02 '17 08:03 abderraza8k