Actuator
Spring Boot Actuator提供了应用的审计、健康检查、状态信息、数据采集、统计、HTTP追踪等监控运维的功能,同时还提供了可扩展的端点功能,方便使用者进行自定义监控指标,也是服务治理中的重要一环
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
配置
# Actuator 名字可以任意写
info:
app.name: fan-springcloud
company.name: fan.com
重启后就能使用
访问
或者
http://x.x.x.x/actuator/health