# 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
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# 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"
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57