Skip to content

libertywork-agb/health-metrics-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a reproduction of a bug that occurs when mapping overall health to a Prometheus metric in a Spring Boot application deployed in a Kubernetes environment. The overall health reports UP on the Actuator health page, but the overall health metric reports 0.0 (DOWN) on the Actuator Prometheus page.

This only occurs when health probes (liveness and readiness) are enabled. When enabled, the SystemHealth status always reports DOWN.

Resolution

The problem was that I was passing HealthComponent into the Gauge builder instead of HealthEndpoint, which is what the Spring Boot documentation does. Based on the observed issue, the HealthComponent must go stale and not get updated.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages