spring-cloud / spring-cloud-consul

Spring Cloud Consul
http://cloud.spring.io/spring-cloud-consul/
Apache License 2.0
813 stars 541 forks source link

TTL check uses actuator for application status #690

Closed onobc closed 1 year ago

onobc commented 3 years ago

Summary

Adds support for the TTL check to take into account the current application health status.

How does it get the app status?

If the consuming application is a Spring Boot Actuator application with its health endpoint enabled/available then the TTL check will use that to determine system health. Otherwise, the previous behavior of report always passing to Consul agent will be used. There is also the ability to configure your own custom status provider.

ℹ️ It would be a good idea to read the updates to the docs at this point as it calls out some other configuration and extension options.
Healthcheck Consul UI
onobc commented 3 years ago

@spencergibb I will get the updates in w/in the next 24hrs.

onobc commented 3 years ago

~Hi @spencergibb, I just wanted to touch base on this and see when/if we can this merged?~

nm, I missed this comment on the issue (later this year is when its scheduled).