question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TTL Checks only report Pass, and ignore real health status from the application

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
onobccommented, Apr 9, 2021

@spencergibb I bit the bullet and did the nasty rebase/merge - should be good now.

0reactions
jdeexcommented, Feb 8, 2022

Any update on this one??

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure Health Checks | Consul | HashiCorp Developer
The endpoints used to update health information for a given check are: pass, warn, fail, and update. TTL checks also persist their last...
Read more >
check Output not updated at all · Issue #1057 · hashicorp/consul
I'm only playing with health checks for the first time, so I have check_update_interval set to 5s and am just hand-tweaking a hard-coded...
Read more >
Introduction to Service Fabric health monitoring - Microsoft Learn
An introduction to the Azure Service Fabric health monitoring model, which provides monitoring of the cluster and its applications and ...
Read more >
Checks reference - Sensu Docs
The time-to-live (TTL) until check results are considered stale. In seconds. If an agent stops publishing results for the check and the TTL...
Read more >
Check Definition
For example, a healthy app can periodically PUT a status update to the HTTP endpoint; if the app fails, the TTL will expire...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found