springboot 端点
返回:一些功能解决
- shutdown:关闭应用程序,要求
endpoints.shutdown.enabled 设置为 true
- pringboot2.0.1版本中除了health和info其他端点默认都被禁用了,想要打开,需要在配置文件加上:
management.endpoints.web.exposure.include=*
{
"_links":{
"self":{
"href":"http://127.0.0.1:7777/actuator",
"templated":false
},
"archaius":{
"href":"http://127.0.0.1:7777/actuator/archaius",
"templated":false
},
"nacos-config":{
"href":"http://127.0.0.1:7777/actuator/nacos-config",
"templated":false
},
"nacos-discovery":{
"href":"http://127.0.0.1:7777/actuator/nacos-discovery",
"templated":false
},
"auditevents":{
"href":"http://127.0.0.1:7777/actuator/auditevents",
"templated":false
},
// 描述应用程序上下文里全部的Bean,以及它们的关系
"beans":{
"href":"http://127.0.0.1:7777/actuator/beans",
"templated":false
},
"caches-cache":{
"href":"http://127.0.0.1:7777/actuator/caches/{cache}",
"templated":true
},
"caches":{
"href":"http://127.0.0.1:7777/actuator/caches",
"templated":false
},
// 报告应用程序的健康指标,这些值由 HealthIndicator 的实现类提供
"health":{
"href":"http://127.0.0.1:7777/actuator/health",
"templated":false
},
"health-component":{
"href":"http://127.0.0.1:7777/actuator/health/{component}",
"templated":true
},
"health-component-instance":{
"href":"http://127.0.0.1:7777/actuator/health/{component}/{instance}",
"templated":true
},
"conditions":{
"href":"http://127.0.0.1:7777/actuator/conditions",
"templated":false
},
// 描述配置属性(包含默认值)如何注入Bean
"configprops":{
"href":"http://127.0.0.1:7777/actuator/configprops",
"templated":false
},
// 获取全部环境属性
"env":{
"href":"http://127.0.0.1:7777/actuator/env",
"templated":false
},
// 根据名称获取特定的环境属性值
"env-toMatch":{
"href":"http://127.0.0.1:7777/actuator/env/{toMatch}",
"templated":true
},
// 获取应用程序的定制信息,这些信息由 info 打头的属性提供
"info":{
"href":"http://127.0.0.1:7777/actuator/info",
"templated":false
},
"integrationgraph":{
"href":"http://127.0.0.1:7777/actuator/integrationgraph",
"templated":false
},
"logfile":{
"href":"http://127.0.0.1:7777/actuator/logfile",
"templated":false
},
"loggers":{
"href":"http://127.0.0.1:7777/actuator/loggers",
"templated":false
},
"loggers-name":{
"href":"http://127.0.0.1:7777/actuator/loggers/{name}",
"templated":true
},
"heapdump":{
"href":"http://127.0.0.1:7777/actuator/heapdump",
"templated":false
},
// 获取线程活动的快照
"threaddump":{
"href":"http://127.0.0.1:7777/actuator/threaddump",
"templated":false
},
// 报告各种应用程序度量信息,比如内存用量和HTTP请求计数
"metrics":{
"href":"http://127.0.0.1:7777/actuator/metrics",
"templated":false
},
// 报告指定名称的应用程序度量值
"metrics-requiredMetricName":{
"href":"http://127.0.0.1:7777/actuator/metrics/{requiredMetricName}",
"templated":true
},
"scheduledtasks":{
"href":"http://127.0.0.1:7777/actuator/scheduledtasks",
"templated":false
},
// 提供基本的HTTP请求跟踪信息(时间戳、HTTP头等)
"httptrace":{
"href":"http://127.0.0.1:7777/actuator/httptrace",
"templated":false
},
// 描述全部的URI路径,以及它们和控制器(包含Actuator端点)的映射关系
"mappings":{
"href":"http://127.0.0.1:7777/actuator/mappings",
"templated":false
},
"refresh":{
"href":"http://127.0.0.1:7777/actuator/refresh",
"templated":false
},
"features":{
"href":"http://127.0.0.1:7777/actuator/features",
"templated":false
},
"service-registry":{
"href":"http://127.0.0.1:7777/actuator/service-registry",
"templated":false
},
"bindings-name":{
"href":"http://127.0.0.1:7777/actuator/bindings/{name}",
"templated":true
},
"bindings":{
"href":"http://127.0.0.1:7777/actuator/bindings",
"templated":false
},
"channels":{
"href":"http://127.0.0.1:7777/actuator/channels",
"templated":false
}
}
}
metrics
{
"names":[
"jvm.memory.max",
"http.server.requests",
"jvm.threads.states",
"jvm.gc.memory.promoted",
"jvm.memory.used",
"jvm.gc.max.data.size",
"jdbc.connections.max",
"jdbc.connections.min",
"jvm.gc.pause",
"jvm.memory.committed",
"system.cpu.count",
"logback.events",
"spring.integration.channels",
"tomcat.global.sent",
"jvm.buffer.memory.used",
"tomcat.sessions.created",
"jvm.threads.daemon",
"system.cpu.usage",
"jvm.gc.memory.allocated",
"tomcat.global.request.max",
"hikaricp.connections.idle",
"hikaricp.connections.pending",
"tomcat.global.request",
"tomcat.sessions.expired",
"hikaricp.connections",
"jvm.threads.live",
"jvm.threads.peak",
"tomcat.global.received",
"hikaricp.connections.active",
"hikaricp.connections.creation",
"process.uptime",
"tomcat.sessions.rejected",
"process.cpu.usage",
"tomcat.threads.config.max",
"jvm.classes.loaded",
"hikaricp.connections.max",
"hikaricp.connections.min",
"jvm.classes.unloaded",
"tomcat.global.error",
"tomcat.sessions.active.current",
"tomcat.sessions.alive.max",
"jvm.gc.live.data.size",
"hikaricp.connections.usage",
"tomcat.threads.current",
"hikaricp.connections.timeout",
"jvm.buffer.count",
"jvm.buffer.total.capacity",
"tomcat.sessions.active.max",
"hikaricp.connections.acquire",
"spring.integration.handlers",
"tomcat.threads.busy",
"process.start.time",
"spring.integration.sources"
]
}