spring-boot2.0中,spring-boot-starter-actuator可以实现应用的监控。
web端点默认的监控端点只有health和info。
spring boot中acurator的默认配置
management.endpoints.web.exposure.include=health,info
management.endpoints.web.base-path=/actuator
management.endpoint.health.show-details=never
management.endpoints.web.base-path=/actuator
management.endpoint.health.show-details=never
其中,只显示了概要信息,没有显示完整信息,如果要在访问/acurator/health时显示完整信息,需要增加如下配置:
management.endpoint.health.show-details=always
本文介绍 Spring Boot 2.0 中使用 spring-boot-starter-actuator 实现应用监控的方法。默认情况下,Actuator 提供了 health 和 info 两个监控端点。为了显示更详细的健康检查信息,需要调整 management.endpoint.health.show-details 的配置。

800

被折叠的 条评论
为什么被折叠?



