Actuator 为springBoot 应用提供的监控
- springBoot整合Actuator
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
直接启动SpringBoot项目

http://localhost:8081/actuator

- 随便点开一个可以看到对应的信息

在yml配置文件中加如如下让配置可以显示/health端点更多的信息
/health端点的为健康检查,用的较多
management:
endpoint:
health:
show-details: always


/inf端点 不是监控信息,而是应用的描述信息
#描述应用
info:
app-name: springBoot-demo
author: ysw
email: qqqqqq@163.com

在yml配置文件中加如如下让配置可以显示更多的端点
management:
endpoints:
web:
exposure:
include: '*'




management:
endpoints:
web:
exposure:
include: '*'
endpoint:
health:
show-details: always
版权声明:本文为yangshengwei230612原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。