标签:文件中 提示 moni bean end info original 没有 type
一句话,actuator是监控系统健康情况的工具。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.uti
Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.ser
Mapped URL path [/webjars/**] onto handler of type [class org.springframework.we
Mapped URL path [/**] onto handler of type [class org.springframework.web.servle
Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframewor
Mapped "{[/metrics/{name:.*}],methods=[GET],produces=[application/json]}" onto p
Mapped "{[/metrics || /metrics.json],methods=[GET],produces=[application/json]}"
Mapped "{[/trace || /trace.json],methods=[GET],produces=[application/json]}" ont
Mapped "{[/configprops || /configprops.json],methods=[GET],produces=[application
Mapped "{[/autoconfig || /autoconfig.json],methods=[GET],produces=[application/j
Mapped "{[/info || /info.json],methods=[GET],produces=[application/json]}" onto
Mapped "{[/dump || /dump.json],methods=[GET],produces=[application/json]}" onto
Mapped "{[/mappings || /mappings.json],methods=[GET],produces=[application/json]
Mapped "{[/health || /health.json],produces=[application/json]}" onto public jav
Mapped "{[/beans || /beans.json],methods=[GET],produces=[application/json]}" ont
Mapped "{[/env/{name:.*}],methods=[GET],produces=[application/json]}" onto publi
Mapped "{[/env || /env.json],methods=[GET],produces=[application/json]}" onto pu
/configprops /autoconfig /beans /env /info /mappings
/dump /health
自动化配置报告,可以看出一些自动化配置为什么没有生效
可以看到定义的所有的bean
可以看到application.properties里面的信息
返回application.properties文件中info开头的配置信息,如:
# /info端点信息配置
info.app.name=spring-boot-hello
info.app.version=v1.0.0
下面是度量指标类
CounterService
接口来实现count指标.可以通过实现 HealthIndicator
接口来实现健康检查,返回值的状态信息在org.springframework.boot.actuate.health.Status
内
调用 java.lang.management.ThreadMXBean
的
public ThreadInfo[] dumpAllThreads(boolean lockedMonitors, boolean lockedSynchronizers);
方法来返回活动线程的信息
如:/shutdown ,通过在application.properties文件中添加
endpoints.shutdown.enabled=true
来开启
spring-boot-starter-actuator监控接口详解
标签:文件中 提示 moni bean end info original 没有 type
原文地址:https://www.cnblogs.com/jpfss/p/10839466.html