spring-cloud/spring-cloud-netflix

Allow custom health check status mapping

Open

#3 975 ouverte le 2 mars 2021

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)Java (2 433 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (4 805 stars)
Métriques de merge PR
 (Merge moyen 3h 47m) (5 PRs mergées en 30 j)

Description

With Spring Boot Actuator health check endpoint, we can use management.endpoint.health.status.http-mapping.<status> to map a custom status to an HTTP status code. But for Eureka integration, any custom status would map to UNKNOWN status in Eureka since the mapping is not configurable (https://github.com/spring-cloud/spring-cloud-netflix/blob/master/spring-cloud-netflix-eureka-client/src/main/java/org/springframework/cloud/netflix/eureka/EurekaHealthCheckHandler.java#L61-L64). It would be nice if we can map custom statuses to UP/DOWN/OUT_OF_SERVICE via properties similar to the health check endpoint HTTP status mapping.

Guide contributeur