Skip to content

Add support for custom actuator health status mapping in EurekaHealthCheckHandler#4551

Open
98001yash wants to merge 3 commits intospring-cloud:mainfrom
98001yash:feature/custom-status-mapping
Open

Add support for custom actuator health status mapping in EurekaHealthCheckHandler#4551
98001yash wants to merge 3 commits intospring-cloud:mainfrom
98001yash:feature/custom-status-mapping

Conversation

@98001yash
Copy link
Copy Markdown

@98001yash 98001yash commented Apr 2, 2026

This PR introduces configurable mapping between Spring Boot Actuator health statuses and Eureka InstanceStatus.

Currently, custom actuator statuses are mapped to UNKNOWN by default. This change allows users to define mappings via configuration:

eureka.client.status.mapping.*

Example:
eureka.client.status.mapping.fatal=OUT_OF_SERVICE

Key points:

  • Supports custom actuator health statuses
  • Case-insensitive mapping
  • Preserves existing default behavior as fallback
  • Maintains backward compatibility

Tests:

  • Added unit tests for custom status mapping
  • Verified null safety handling
  • All existing tests pass successfully

Fixes #4551

… LoadBalancer

Signed-off-by: 98001yash <yashchauhan.gaya@gmail.com>
…CheckHandler

Signed-off-by: 98001yash <yashchauhan.gaya@gmail.com>

=== Using Eureka with Spring Cloud LoadBalancer

We offer support for the Spring Cloud LoadBalancer `ZonePreferenceServiceInstanceListSupplier`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you rewrite the documentation? Please revert to focus on one thing

Signed-off-by: 98001yash <yashchauhan.gaya@gmail.com>
@98001yash
Copy link
Copy Markdown
Author

You're right — that was unintended. I've reverted the unrelated documentation changes and kept the PR focused only on the status mapping feature.
Thanks for pointing that out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants