Hi I am using actuator in sprinb-boot 2, with the following properties
management.endpoints.enabled-by-default=false
management.endpoint.health.enabled=true
My aim is to disable all endpoints except health. By this configuration I disabled all except health and getting the following endpoints now  "health", "health-component", "health-component-instance" . Is it possible to disable "health-component", "health-component-instance" as well ? And how ?
Health component endpoints were introduced in Spring Boot 2.2.0.M2 as an extension to already existing HealthEndpoint. 
There is no configuration option to disable just /health-component and /health-component-instance, either the entire health endpoint is disabled or not.
For SpringBoot 2.1.3 you can use the following in you application.yml:
#ENDPOINTS:
management:
  endpoints:
    web:
      exposure:
        include:
        - 'health'
        - 'info'
It will make only two listed endpoints available from actuator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With