TTL Checks only report Pass, and ignore real health status from the application
See original GitHub issueDescribe the bug TTL seems to only reports pass, even when there are health indicators failing. Even when the Health Endpoint <aaplication/actuator/health reports DOWN (and HTTP+Interval would show that way in Consul), the TTL check reports OK instead.
Having a look at the code it could be because of this
TTL should check the application status and report that using Consul TTL endpoints
Sample
Implement a test health indicator that will cause the status to be down:
public class TestHealthIndicator implements HealthIndicator { @Override public Health health() { return Health .down() .withDetail("test", "App is failing") .build(); } }
Enable TTL in the spring configuration:
spring: cloud: consul: discovery: heartbeat: enabled: true ttl-value: 30 ttl-unit: m
Review /actuator/health Down status and status reported in Consul
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)

Top Related StackOverflow Question
@spencergibb I bit the bullet and did the nasty rebase/merge - should be good now.
Any update on this one??