Prometheus监控JAVA服务指标说明spring-boot服务增加引⽤
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
<version>1.3.16</version>
</dependency>
序
号
指标类型含义原⽂
1logback_events_total counter 记录到⽇志的
错误级别事件
数
Number of error level events that made it to
the logs
2system_cpu_usage gauge 整个系统
的“最近cpu
使⽤情况”
The "recent cpu usage" for the whole system
3system_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
4system_cpu_count gauge java虚拟机可
⽤的处理器数
项目成功的三要素
量
The number of processors available to the
Java virtual machine
5process_start_time_conds gauge ⾃unix时代以
来进程的开始
时间(秒)
Start time of the process since unix epoch.
6process_cpu_usage gauge java虚拟机进
程的“最近
CPU使⽤”
The "recent cpu usage" for the Java Virtual
红萝卜烧排骨
Machine process
7process_uptime_conds gauge java虚拟机的
运⾏时间
The uptime of the Java virtual machine
8process_files_open_files gauge 打开⽂件描述
符数量
The open file descriptor count
9process_files_max_files gauge 最⼤⽂件描述
符数量
The maximum file descriptor count
10tomcat_ssions_expired_ssions_total counter tomcat过期会话数总计
11tomcat_ssions_rejected_ssions_total counter tomcat拒绝会
话数总计
12tomcat_ssions_active_max_ssions gauge tomcat_活跃会话最⼤数量
13tomcat_ssions_created_ssions_total counter tomcat会话创建会话总数
14tomcat_ssions_active_current_ssions gauge tomcat当前活跃会话数
15tomcat_ssions_alive_max_conds gauge 最⼤tomcat会话存活时间
16jvm_class_loaded_class gauge Java虚拟机中
当前加载的类
数
The number of class that are currently
loaded in the Java virtual machine
17jvm_class_unloaded_class_total counter 未加载的
class数
大自然的奥秘
The total number of class unloaded since
the Java virtual machine has started execution
18jvm_memory_ud_bytes gauge内存使⽤⼤⼩The amount of ud memory
19jvm_memory_max_bytes gauge 可⽤于内存管
理的字节的最
⼤内存量
The maximum amount of memory in bytes
that can be ud for memory management
20jvm_memory_committed_bytes gauge 提交给Java虚
拟机使⽤的内
存量(字节)
The amount of memory in bytes that is
committed for the Java virtual machine to u
21jvm_buffer_memory_ud_bytes gauge JVM缓冲区已
⽤内存
An estimate of the memory that the Java
virtual machine is using for this buffer pool
22jvm_buffer_total_capacity_bytes gauge 缓冲区的总容干洗头发怎么洗
量的估计
An estimate of the total capacity of the
激越的意思buffers in this pool
23jvm_buffer_count_buffers gauge当前缓冲区数An estimate of the number of buffers in the pool
24jvm_gc_pau_conds summary GC暂停时间Time spent in GC pau
25jvm_gc_pau_conds_max gauge GC最⼤暂停
时间
Time spent in GC pau
26jvm_gc_max_data_size_bytes gauge ⽼年代内存池
的最⼤⼤⼩
Max size of old generation memory pool
27jvm_gc_memory_allocated_bytes_total counter 在⼀次GC之
后到下⼀次
景教GC之前,年
轻⼀代内存池
的⼤⼩增加
Incremented for an increa in the size of the
young generation memory pool after one GC
to before the next
28jvm_gc_live_data_size_bytes gauge full GC后的⽼
年代内存池⼤
⼩
Size of old generation memory pool after a
full GC
29jvm_gc_memory_promoted_bytes_total counter 从GC之前到
GC之后⽼年
代内存池⼤⼩
正增长的计数
Count of positive increas in the size of the
old generation memory pool before GC to
after GC
30jvm_threads_states_threads gauge 当前处于NEW
状态的线程数
The current number of threads having NEW
state
31jvm_threads_live_threads gauge 当前活动线程
数,包括守护
期字组词进程线程和⾮
守护进程线程
The current number of live threads including
both daemon and non-daemon threads
32jvm_threads_daemon_threads gauge 当前守护进程
线程的数量
UKFThe current number of live daemon threads
33jvm_threads_peak_threads gauge JVM峰值线程
数
The peak live thread count since the Java
virtual machine started or peak was ret
34http_rver_requests_conds summary http请求调⽤情况
35http_rver_requests_conds_max gauge