spring-boot-actuator健康监控

server.port = 8080

 

#健康监控

management.security.enabled=false

 

management.port = 54001

health.mail.enabled =false

 

http://localhost:54001/autoconfig

 

http://localhost:54001/env

http://localhost:54001/health

 

HTTP方法

路径

描述

鉴权

GET

/autoconfig

查看自动配置的使用情况

TRUE

GET

/configprops

查看配置属性,包括默认配置

TRUE

GET

/beans

查看bean及其关系列表

TRUE

GET

/dump

打印线程栈

TRUE

GET

/env

查看所有环境变量

TRUE

GET

/env/{name}

查看具体变量值

TRUE

GET

/health

查看应用健康指标

FALSE

GET

/info

查看应用信息(需要自己在application.properties里头添加信息,比如[email protected]

FALSE

GET

/mappings

查看所有url映射

TRUE

GET

/metrics

查看应用基本指标

TRUE

GET

/metrics/{name}

查看具体指标

TRUE

POST

/shutdown

关闭应用(要真正生效,得配置文件开启endpoints.shutdown.enabled: true)

TRUE

GET

/trace

查看基本追踪信息

TRUE

猜你喜欢

转载自blog.csdn.net/xiang__liu/article/details/81121820