Spring boot Actuator does not provide all endpoints version 2.0.0.M5

I have installed my spring boot project as indicated in this link . I expected it to provide endpoints such as health, indicators, etc. Instead, he gives me only three endpoints. What am I doing to get all the endpoints?

Spring download version: 2.0.0.M5

INFO 2017-10-14 01:45:31,176 [main][] org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping - Mapped "{[/application/status],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping$OperationHandler.handle(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.String>)
 INFO 2017-10-14 01:45:31,176 [main][] org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping - Mapped "{[/application/info],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping$OperationHandler.handle(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.String>)
 INFO 2017-10-14 01:45:31,177 [main][] org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping - Mapped "{[/application],methods=[GET]}" onto private java.util.Map<java.lang.String, java.util.Map<java.lang.String, org.springframework.boot.actuate.endpoint.web.Link>> org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping.links(javax.servlet.http.HttpServletRequest)
+4
source share
4 answers

To enable all default endpoints, you can add the following property:

For application.properties :

endpoints.default.enabled=true

For application.yml :

endpoints:
  default:
    enabled: true

You can also check other properties for spring boot 2.0.0.M5 here

+1

spring 2.0.0.M5 /status /info .

, , /metrics:

endpoints:
  metrics:
    enabled: true
+1

New version for enabling endpoints:

management.endpoints.web.expose=*

+1
source

The endpoint /actuator/metricswas only valid after I added the line management.endpoints.web.exposure.include=*to the file application.properties.

I am using spring-boot-actuator: 2.0.0.RELEASE.

+1
source

Source: https://habr.com/ru/post/1687460/


All Articles