you can try something like this management.health.<indicator_identifier>.enabled in you application.yml file as mentioned here https://www.baeldung.com/spring-boot-health-indicators#2-disabling-the-indicator
management.health.<indicator_identifier>.enabled