spring-boot服务增加引用
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
<version>1.3.16</version>
</dependency>
|
序号 |
指标 |
类型 |
含义 |
原文 |
|
1 |
logback_events_total |
counter |
记录到日志的错误级别事件数 |
Number of error level events that made it to the logs |
|
2 |
system_cpu_usage |
gauge |
整个系统的“最近cpu使用情况” |
The "recent cpu usage" for the whole system |
|
3 |
system_load_average_1m |
gauge |
系统负载 |
The sum of the number of runnable entities queued to available processors and the number of runnable entities running on the available processors averaged over a period of time |
|
4 |
system_cpu_count |
gauge |
java虚拟机可用的处理器数量 |
The number of processors available to the Java virtual machine |
|
5 |
process_start_time_seconds |
gauge |
自unix时代以来进程的开始时间(秒) |
Start time of the process since unix epoch. |
|
6 |
process_cpu_usage |
gauge |
java虚拟机进程的“最近CPU使用” |
The "recent cpu usage" for the Java Virtual Machine process |
|
7 |
process_uptime_seconds |
gauge |
java虚拟机的运行时间 |
The uptime of the Java virtual machine |
|
8 |
process_files_open_files |
gauge |
打开文件描述符数量 |
The open file descriptor count |
|
9 |
process_files_max_files |
gauge |
最大文件描述符数量 |
The maximum file descriptor count |
|
10 |
tomcat_sessions_expired_sessions_total |
counter |
tomcat过期会话数总计 |
|
|
11 |
tomcat_sessions_rejected_sessions_total |
counter |
tomcat拒绝会话数总计 |
|
|
12 |
tomcat_sessions_active_max_sessions |
gauge |
tomcat_活跃会话最大数量 |
|
|
13 |
tomcat_sessions_created_sessions_total |
counter |
tomcat会话创建会话总数 |
|
|
14 |
tomcat_sessions_active_current_sessions |
gauge |
tomcat当前活跃会话数 |
|
|
15 |
tomcat_sessions_alive_max_seconds |
gauge |
最大tomcat会话存活时间 |
|
|
16 |
jvm_classes_loaded_classes |
gauge |
Java虚拟机中当前加载的类数 |
The number of classes that are currently loaded in the Java virtual machine |
|
17 |
jvm_classes_unloaded_classes_total |
counter |
未加载的classes数 |
The total number of classes unloaded since the Java virtual machine has started execution |
|
18 |
jvm_memory_used_bytes |
gauge |
内存使用大小 |
The amount of used memory |
|
19 |
jvm_memory_max_bytes |
gauge |
可用于内存管理的字节的最大内存量 |
The maximum amount of memory in bytes that can be used for memory management |
|
20 |
jvm_memory_committed_bytes |
gauge |
提交给Java虚拟机使用的内存量(字节) |
The amount of memory in bytes that is committed for the Java virtual machine to use |
|
21 |
jvm_buffer_memory_used_bytes |
gauge |
JVM缓冲区已用内存 |
An estimate of the memory that the Java virtual machine is using for this buffer pool |
|
22 |
jvm_buffer_total_capacity_bytes |
gauge |
缓冲区的总容量的估计 |
An estimate of the total capacity of the buffers in this pool |
|
23 |
jvm_buffer_count_buffers |
gauge |
当前缓冲区数 |
An estimate of the number of buffers in the pool |
|
24 |
jvm_gc_pause_seconds |
summary |
GC暂停时间 |
Time spent in GC pause |
|
25 |
jvm_gc_pause_seconds_max |
gauge |
GC最大暂停时间 |
Time spent in GC pause |
|
26 |
jvm_gc_max_data_size_bytes |
gauge |
老年代内存池的最大大小 |
Max size of old generation memory pool |
|
27 |
jvm_gc_memory_allocated_bytes_total |
counter |
在一次GC之后到下一次GC之前,年轻一代内存池的大小增加 |
Incremented for an increase in the size of the young generation memory pool after one GC to before the next |
|
28 |
jvm_gc_live_data_size_bytes |
gauge |
full GC后的老年代内存池大小 |
Size of old generation memory pool after a full GC |
|
29 |
jvm_gc_memory_promoted_bytes_total |
counter |
从GC之前到GC之后老年代内存池大小正增长的计数 |
Count of positive increases in the size of the old generation memory pool before GC to after GC |
|
30 |
jvm_threads_states_threads |
gauge |
当前处于NEW状态的线程数 |
The current number of threads having NEW state |
|
31 |
jvm_threads_live_threads |
gauge |
当前活动线程数,包括守护进程线程和非守护进程线程 |
The current number of live threads including both daemon and non-daemon threads |
|
32 |
jvm_threads_daemon_threads |
gauge |
当前守护进程线程的数量 |
The current number of live daemon threads |
|
33 |
jvm_threads_peak_threads |
gauge |
JVM峰值线程数 |
The peak live thread count since the Java virtual machine started or peak was reset |
|
34 |
http_server_requests_seconds |
summary |
http请求调用情况 |
|
|
35 |
http_server_requests_seconds_max |
gauge |
|
|
本文详细介绍了如何使用Prometheus来监控Spring Boot服务的指标,包括如何添加监控依赖、配置服务暴露指标以及如何解读和利用这些数据进行性能优化。
1368

被折叠的 条评论
为什么被折叠?



