全部产品
Search
文档中心

应用实时监控服务ARMS:应用监控指标说明

更新时间:Oct 27, 2026

本文介绍了ARMS应用监控中常见的指标说明,您可以使用这些指标自定义Grafana大盘。

重要

通过可观测链路 Opentelemetry 版接入的应用仅支持展示/使用业务类指标,其他指标(例如JVM指标、系统指标)不支持。

业务类指标

公共维度

维度名称

维度Key

服务名称

service

服务PID

pid

机器IP

serverIp

接口

rpc

指标列表

所有访问类型都包含下列指标,执行查询操作时,只需要将$callType替换为具体的访问类型即可。详细的访问类型,请参见服务访问类型及可用维度。

例如:需要查询HTTP服务的请求数时,只需将arms_$callType_requests_count修改为arms_http_requests_count。

指标名称

指标

指标类型

采集间隔

单位

维度

请求数

arms_$callType_requests_count

Gauge

15s

无

不同服务访问类型维度不同,详细信息,请参见服务访问类型及可用维度。

错误请求数

arms_$callType_requests_error_count

Gauge

15s

无

请求耗时

arms_$callType_requests_seconds

Gauge

15s

秒

慢请求数

arms_$callType_requests_slow_count

Gauge

15s

无

请求耗时分位数

arms_$callType_requests_latency_seconds

Summary

15s

秒

仅当服务访问类型为HTTP且开启分位数统计的情况下存在。开启分位数统计的操作,请参见高级设置。

Quantile分位数维度:

  • 0.5

  • 0.75

  • 0.90

  • 0.99

说明

除分位数指标外,上述指标均是Gauge类型,即每个点的值都表示采集间隔内累计的总值。这一点与开源框架产生的指标是不同的。以计算1分钟平均QPS为例,使用ARMS指标的promQL应当写为 sum_over_time(arms_$callType_requests_count[1m])/60,开源框架一般会写为 rate(http_server_requests_count[1m])。

指标存储实例说明

业务类指标均存储于明细指标库(metricstore-apm-metrics-detail)。

聚合类业务指标

  • 业务类指标针对每种不同的调用类型都创建了单独的指标,这导致当单个应用包含多个调用类型时(例如A应用同时包含HTTP和Dubbo两种调用类型),编写出的PromQL会特别冗长。

  • 业务类指标记录了完整的观测维度,但在部分统计场景下并不需要所有的观测维度,这导致直接查询业务类指标在部分场景下性能较差。

为解决上述两类问题,ARMS专门创建了聚合类业务指标。

指标说明

聚合类业务指标分为:

  • 通用类

    记录了所有访问类型的请求数、错误数、慢请求数、平均请求耗时。

  • 数据库类

    记录了数据库访问类型的请求数、错误数、慢请求数、平均请求耗时。

  • SQL类

    记录了数据库访问类型的请求数、错误数、慢请求数、平均请求耗时,相比数据库类增加了SQL维度。

  • 异常类

    记录了所有访问类型在出现异常时的请求数及平均请求耗时。

  • 状态码类

    记录了HTTP场景下不同状态码下的请求数。

  • 分位数类

    记录了所有访问类型的请求耗时分位数。

除分位数类外,每个大类中存在两种指标,一种为普通聚合类指标,指标命名格式为xxx_raw; 一种为降维度指标,指标命名格式为xxx_ign_x_y(x、y为被聚合掉的维度,即该指标中不包含x、y维度)。

指标类型与采集间隔

如无特别说明,所有聚合类业务指标的类型均为Gauge类型,采集间隔为15秒。

公共维度

下述维度每个聚合类指标中都存在,统一说明如下:

维度

说明

pid

应用PID

service

应用名称

serverIp

实例IP

source

指标来源:

  • apm

    表示通过ARMS探针接入的应用。

  • xtrace

    表示通过可观测链路 Opentelemetry 版接入的应用。

  • ebpf

    表示通过应用监控 ebpf 版探针接入的应用。

指标列表

指标大类

指标名称

指标

单位

其他维度

通用类

请求数

arms_app_requests_count_raw

个

  • callType:访问类型

  • rpc:接口名称

  • prpc:上游接口名称

  • ppid:上游应用PID

  • parent:上游应用名称

  • endpoint:当callType为http_client时表示对端接口,其他场景均表示远端地址。

  • destId:当callType为数据库类型时表示数据库库名,其他场景均表示远端地址。

arms_app_requests_count_ign_destid_endpoint_parent_ppid_prpc_rpc

个

不包含destId、endpoint、parent、ppid、prpc、rpc维度。

arms_app_requests_count_ign_destid_endpoint_prpc_rpc

个

不包含destId、endpoint、rpc、prpc维度。

arms_app_requests_count_ign_destid_endpoint_parent_ppid_prpc

个

不包含destId、endpoint、parent、ppid、prpc维度。

arms_app_requests_count_ign_parent_ppid_prpc_rpc

个

不包含parent、ppid、prpc、rpc维度。

错误请求数

arms_app_requests_error_count_raw

个

  • callType:访问类型

  • rpc:接口名称

  • prpc:上游接口名称

  • ppid:上游应用PID

  • parent:上游应用名称

  • endpoint:当callType为http_client时表示对端接口,其他场景均表示远端地址。

  • destId:当callType为数据库类型时表示数据库库名,其他场景均表示远端地址。

arms_app_requests_error_count_ign_destid_endpoint_prpc_rpc

个

不包含destId、endpoint、rpc、prpc维度。

arms_app_requests_error_count_ign_destid_endpoint_parent_ppid_prpc

个

不包含destId、endpoint、parent、ppid、prpc维度。

arms_app_requests_error_count_ign_parent_ppid_prpc_rpc

个

不包含parent、ppid、prpc、rpc维度。

arms_app_requests_error_count_ign_parent_ppid_prpc_rpc

个

不包含parent、ppid、prpc、rpc维度。

慢请求数

arms_app_requests_slow_count_raw

个

  • callType:访问类型

  • rpc:接口名称

  • prpc:上游接口名称

  • ppid:上游应用PID

  • parent:上游应用名称

  • endpoint:当callType为http_client时表示对端接口,其他场景均表示远端地址。

  • destId:当callType为数据库类型时表示数据库库名,其他场景均表示远端地址。

arms_app_requests_slow_count_ign_destid_endpoint_parent_ppid_prpc_rpc

个

不包含destId、endpoint、parent、ppid、prpc、rpc维度。

arms_app_requests_slow_count_ign_destid_endpoint_prpc_rpc

个

不包含destId、endpoint、rpc、prpc维度。

arms_app_requests_slow_count_ign_destid_endpoint_parent_ppid_prpc

个

不包含destId、endpoint、parent、ppid、prpc维度。

arms_app_requests_slow_count_ign_parent_ppid_prpc_rpc

个

不包含parent、ppid、prpc、rpc维度。

请求耗时

arms_app_requests_seconds_raw

秒

  • callType:访问类型

  • rpc:接口名称

  • prpc:上游接口名称

  • ppid:上游应用PID

  • parent:上游应用名称

  • endpoint:当callType为http_client时表示对端接口,其他场景均表示远端地址。

  • destId:当callType为数据库类型时表示数据库库名,其他场景均表示远端地址。

arms_app_requests_seconds_ign_destid_endpoint_parent_ppid_prpc_rpc

秒

不包含destId、endpoint、parent、ppid、prpc、rpc维度。

arms_app_requests_seconds_ign_destid_endpoint_prpc_rpc

秒

不包含destId、endpoint、rpc、prpc维度。

arms_app_requests_seconds_ign_destid_endpoint_parent_ppid_prpc

秒

不包含destId、endpoint、parent、ppid、prpc维度。

arms_app_requests_seconds_ign_parent_ppid_prpc_rpc

秒

不包含parent、ppid、prpc、rpc维度。

数据库类

数据库请求数

arms_db_requests_count_raw

个

  • callType:访问类型

  • rpc:接口名称

  • endpoint:数据库实例地址

  • destId:数据库库名

arms_db_requests_count_ign_rpc

个

不包含接口维度。

数据库请求错误数

arms_db_requests_error_count_raw

个

  • callType:访问类型

  • rpc:接口名称

  • endpoint:数据库实例地址

  • destId:数据库库名

arms_db_requests_error_count_ign_rpc

个

不包含接口维度。

数据库慢请求数

arms_db_requests_slow_count_raw

个

  • callType:访问类型

  • rpc:接口名称

  • endpoint:数据库实例地址

  • destId:数据库库名

arms_db_requests_slow_count_ign_rpc

个

不包含接口维度。

数据库请求耗时

arms_db_requests_seconds_raw

秒

  • callType:访问类型

  • rpc:接口名称

  • endpoint:数据库实例地址

  • destId:数据库库名

arms_db_requests_seconds_ign_rpc

秒

不包含接口维度。

SQL类

SQL请求数

arms_sql_requests_count_raw

  • callType:访问类型

  • rpc:接口名称

  • endpoint:数据库实例地址

  • destId:数据库库名

  • sqlId:SQL语句ID

arms_sql_requests_count_ign_rpc

不包含接口维度。

SQL请求错误数

arms_sql_requests_error_count_raw

个

  • callType:访问类型

  • rpc:接口名称

  • endpoint:数据库实例地址

  • destId:数据库库名

  • sqlId:SQL语句ID

arms_sql_requests_error_count_ign_rpc

个

不包含接口维度。

SQL慢请求数

arms_sql_requests_slow_count_raw

个

  • callType:访问类型

  • rpc:接口名称

  • endpoint:数据库实例地址

  • destId:数据库库名

  • sqlId:SQL语句ID

arms_sql_requests_slow_count_ign_rpc

个

不包含接口维度。

SQL请求耗时

arms_sql_requests_seconds_raw

秒

  • callType:访问类型

  • rpc:接口名称

  • endpoint:数据库实例地址

  • destId:数据库库名

  • sqlId:SQL语句ID

arms_sql_requests_seconds_ign_rpc

秒

不包含接口维度。

异常类

异常请求数

arms_exception_requests_count_raw

个

  • callType:访问类型

  • rpc:接口名称

  • endpoint:当callType为http_client时表示对端接口,其他场景均表示远端地址。

  • destId:当callType为数据库类型时表示数据库名,其他场景均表示远端地址。

  • excepInfo:异常编码方式

  • excepType:异常编码ID

  • excepName:异常名称

arms_exception_requests_count_ign_destid_endpoint_rpc

个

不包含destid、endpoint、rpc维度。

arms_exception_requests_count_ign_destid_endpoint

个

不包含destid、endpoint维度。

异常请求耗时

arms_exception_requests_seconds_raw

秒

  • callType:访问类型

  • rpc:接口名称

  • endpoint:当callType为http_client时表示对端接口,其他场景均表示远端地址。

  • destId:当callType为数据库类型时表示数据库库名,其他场景均表示远端地址。

  • excepInfo:异常编码方式

  • excepType:异常编码ID

  • excepName:异常名称

arms_exception_requests_seconds_ign_destid_endpoint_rpc

秒

不包含destid、endpoint、rpc维度。

arms_exception_requests_seconds_ign_destid_endpoint

秒

不包含destid、endpoint维度。

状态码类

分状态码请求数

arms_requests_by_status_count_raw

个

  • rpc:接口名称

  • status状态码:

    • 200:HTTP状态码为200

    • 2xx:HTTP状态码大于200小于300

    • 3xx:HTTP状态码大于等于300小于400

    • 4xx:HTTP状态码大于等于400小于500

    • 5xx:HTTP状态码大于等于500

arms_requests_by_status_count_ign_rpc

个

不包含接口维度。

分位数类

请求耗时分位数

说明

仅4.x及以上版本探针支持。

arms_uni_requests_latency_seconds

  • callType:访问类型

  • rpc:接口名称

  • quantile分位数:

    • 0.5:50分位数

    • 0.75:75分位数

    • 0.90:90分位数

    • 0.99:99分位数

  • endpoint:当callType为http_client时表示对端接口,其他场景均表示远端地址。

  • destId:当callType为数据库类型时表示数据库库名,其他场景均表示远端地址。

  • excepInfo:异常编码方式

  • excepType:异常编码ID

  • excepName:异常名称

  • status状态码:

    • 200:HTTP状态码为200

    • 2xx:HTTP状态码大于200小于300

    • 3xx:HTTP状态码大于等于300小于400

    • 4xx:HTTP状态码大于等于400小于500

    • 5xx:HTTP状态码大于等于500

使用示例

使用promQL统计应用所有接口的请求数,如何选择指标?

  1. 基于需求,我们需要找一个提供接口请求数的指标。通过查看文档,可知通用类指标满足需求。

  2. 接着鉴于统计结果只关心接口维度,其他维度例如上游接口、上游应用、远端地址等都不关心,那么在选择具体指标时,应先确认指标中包含了接口维度,然后指标中所包含的其他维度越少越好。

综上,最优的指标应该是arms_app_requests_count_ign_destid_endpoint_parent_ppid_prpc。

指标存储实例说明

存储于核心指标库(metricstore-apm-metrics)中的指标:

  • arms_app_requests_{metric}_ign_destid_endpoint_parent_ppid_prpc_rpc

  • arms_app_requests_{metric}_ign_destid_endpoint_rpc_prpc

  • arms_app_requests_{metric}_ign_destid_endpoint_parent_ppid_prpc

其余聚合类业务指标均存储于明细指标库(metricstore-apm-metrics-detail)中。

JVM指标

公共维度

维度名称

维度Key

服务名称

service

服务PID

pid

机器IP

serverIp

指标列表

指标名称

指标

指标类型

采集间隔

单位

维度

累计GC发生次数

arms_jvm_gc_total

Counter

15s

无

Gen GC发生区域:

  • Young:年轻代

  • Old:老年代

Cause GC触发原因(4.4.0及以上版本探针):System.gc()、Heap Dump Initiated GC、Allocation Failure等。

展开查看Cause GC详细说明

  • System.gc():当程序显式调用System.gc()请求进行垃圾回收时,会触发此原因。

  • FullGCAlot / ScavengeAlot:这些原因可能与测试或调试场景有关,其中频繁的完整GC或小型GC(“清除”)被故意触发。

  • Allocation Profiler:此垃圾回收原因可能涉及内存分配分析,以更好地理解内存使用情况。

  • JvmtiEnv ForceGarbageCollection:表示Java虚拟机工具接口(JVMTI)发出了强制垃圾回收的请求。

  • Heap Inspection Initiated GC & Heap Dump Initiated GC:这些通常不是常规操作,但用于检查堆或获取堆转储。

  • WhiteBox Initiated Young/Full GC & Run to Breakpoint:这些由WhiteBox测试引发,通常用于JVM内部测试目的。

  • No GC:JVM 可能基于内部启发式算法(如在CMS算法中堆使用趋势预测)触发 GC,而非特定条件(如内存不足),所以显示为No GC。

  • Allocation Failure:因为JVM无法为新对象分配内存而触发的垃圾回收,表明可能存在内存压力情况。

  • CodeCache GC Threshold / Aggressive:涉及代码缓存,它存储编译后的代码。当缓存达到某个阈值或需要积极管理时,可能会触发GC。

  • Metadata GC Threshold / Clear Soft References:由元数据空间阈值或软引用清除触发的GC,可以在不影响应用程序执行的情况下释放内存。

  • G1 Evacuation Pause / Compaction Pause / Humongous Allocation / Periodic Collection:这些是与G1垃圾收集器相关的特定GC原因,它针对低暂停时间进行了优化。

  • Diagnostic Command:通过诊断命令触发,通常用于内部监控或诊断目的。

  • Shenandoah GC Causes:这些与Shenandoah垃圾收集器有关,该收集器旨在通过并发操作减少暂停时间。

  • Z Garbage Collector Causes (Timer, Warmup, etc.):这些特定于ZGC(Z垃圾收集器),重点在于性能调优方面,例如热身、分配率和主动措施。

  • ILLEGAL VALUE:表示非法或未识别的垃圾回收原因值,作为对意外情况的保护措施。

累计GC耗时

arms_jvm_gc_seconds_total

Counter

15s

秒

两次采集间隔之间的GC次数

arms_jvm_gc_delta

Gauge

15s

无

两次采集间隔之间的GC耗时

arms_jvm_gc_seconds_delta

Gauge

15s

秒

JVM线程数

arms_jvm_threads_count

Gauge

15s

无

State线程状态:

  • Blocked:阻塞状态

  • Live:活跃状态

  • Daemon:守护状态

  • New:初始状态

  • Dead-lock:死锁状态

  • Runnable:运行状态

  • Terminated:终止状态

  • Timed-wait:超时等待状态

  • Wait:等待状态

JVM内存区域初始大小

arms_jvm_mem_init_bytes

Gauge

15s

字节

Area区域:

  • Heap:堆区

  • Nonheap:非堆区

  • Total:总计

ID区域细分:

  • Eden:伊甸区

  • Old:老年代

  • Survivor:幸存者区

  • Metaspace:元数据区

  • Code cache:代码缓存区

  • Compressed class space:压缩类空间

  • Total:总计

JVM内存区域最大大小

arms_jvm_mem_max_bytes

Gauge

15s

字节

JVM内存区域使用大小

arms_jvm_mem_used_bytes

Gauge

15s

字节

JVM内存区域已提交大小

arms_jvm_mem_committed_bytes

Gauge

15s

字节

JVM内存区域使用比例

arms_jvm_mem_usage_ratio

Gauge

15s

比例(0~1)

JVM已加载类

arms_class_load_loaded

Counter

15s

无

无

JVM已卸载类

arms_class_load_un_loaded

Counter

15s

无

无

JVM缓存池大小

arms_jvm_buffer_pool_total_bytes

Gauge

15s

字节

ID区域:

  • Direct

  • Mapped

JVM缓存池已使用大小

arms_jvm_buffer_pool_used_bytes

Gauge

15s

字节

JVM缓存池个数

arms_jvm_buffer_pool_count

Gauge

15s

无

文件描述符打开个数

arms_file_desc_open_count

Gauge

15s

无

无

文件描述符打开比例(已打开数/最大允许打开数)

arms_file_desc_open_ratio

Gauge

15s

比例(0~1)

无

指标存储实例说明

JVM指标均存储于核心指标库(metricstore-apm-metrics)。

系统指标

公共维度

维度名称

维度Key

服务名称

service

服务PID

pid

机器IP

serverIp

指标列表

指标名称

指标

指标类型

采集间隔

单位

空闲CPU占比

arms_system_cpu_idle

Gauge

15s

百分数

IO等待CPU占比

arms_system_cpu_io_wait

Gauge

15s

百分数

系统CPU占比

arms_system_cpu_system

Gauge

15s

百分数

用户态CPU占比

arms_system_cpu_user

Gauge

15s

百分数

系统负载(1分钟)

arms_system_load

Gauge

15s

无

磁盘空闲大小

arms_system_disk_free_bytes

Gauge

15s

字节

磁盘总大小

arms_system_disk_total_bytes

Gauge

15s

字节

磁盘使用率

arms_system_disk_used_ratio

Gauge

15s

比例(0~1)

内存Buffer大小

arms_system_mem_buffers_bytes

Gauge

15s

字节

内存缓存大小

arms_system_mem_cached_bytes

Gauge

15s

字节

内存空闲大小

arms_system_mem_free_bytes

Gauge

15s

字节

内存交换区空闲大小

arms_system_mem_swap_free_bytes

Gauge

15s

字节

内存交换区大小

arms_system_mem_swap_total_bytes

Gauge

15s

字节

内存大小

arms_system_mem_total_bytes

Gauge

15s

字节

已用内存大小

arms_system_mem_used_bytes

Gauge

15s

字节

网络接收流量大小

arms_system_net_in_bytes

Gauge

15s

字节

网口发送流量大小

arms_system_net_out_bytes

Gauge

15s

字节

网络入口错误数

arms_system_net_in_err

Gauge

15s

无

网络出口错误数

arms_system_net_out_err

Gauge

15s

无

指标存储实例说明

系统指标均存储于核心指标库(metricstore-apm-metrics)。

线程池/连接池指标

公共维度

维度名称

维度Key

服务名称

service

服务PID

pid

机器IP

serverIp

线程池名称(4.1.x以下探针版本支持)

name

线程池类型(4.1.x以下探针版本支持)

type

指标列表

4.1.x及以上探针版本

线程池指标

指标名称

指标

指标类型

采集间隔

维度

核心线程数

arms_thread_pool_core_pool_size

Gauge

15s

  • thread_name_pattern:线程名字pattern,例如http-nio-8080-*。

  • thread_pool_usage:线程池用途,例如Tomcat、Dubbo、Undertow等。

最大线程数

arms_thread_pool_max_pool_size

Gauge

15s

  • thread_name_pattern:线程名字pattern,例如http-nio-8080-*。

  • thread_pool_usage:线程池用途,例如Tomcat、Dubbo、Undertow等。

活跃线程数

arms_thread_pool_active_thread_count

Gauge

15s

  • thread_name_pattern:线程名字pattern,例如http-nio-8080-*。

  • thread_pool_usage:线程池用途,例如Tomcat、Dubbo、Undertow等。

当前线程数

arms_thread_pool_current_thread_count

Gauge

15s

  • thread_name_pattern:线程名字pattern,例如http-nio-8080-*。

  • thread_pool_usage:线程池用途,例如Tomcat、Dubbo、Undertow等。

线程池历史最大线程数(该线程池创建以来线程数的峰值)

arms_thread_pool_max_thread_count

Gauge

15s

  • thread_name_pattern:线程名字pattern,例如http-nio-8080-*。

  • thread_pool_usage:线程池用途,例如Tomcat、Dubbo、Undertow等。

线程池调度任务数

arms_thread_pool_scheduled_task_count

Counter

15s

  • thread_name_pattern:线程名字pattern,例如http-nio-8080-*。

  • thread_pool_usage:线程池用途,例如Tomcat、Dubbo、Undertow等。

线程池执行完成任务数

arms_thread_pool_completed_task_count

Counter

15s

  • thread_name_pattern:线程名字pattern,例如http-nio-8080-*。

  • thread_pool_usage:线程池用途,例如Tomcat、Dubbo、Undertow等。

线程池拒绝任务数

arms_thread_pool_rejected_task_count

Counter

15s

  • thread_name_pattern:线程名字pattern,例如http-nio-8080-*。

  • thread_pool_usage:线程池用途,例如Tomcat、Dubbo、Undertow等。

线程池任务队列大小

arms_thread_pool_queue_size

Gauge

15s

  • thread_name_pattern:线程名字pattern,例如http-nio-8080-*。

  • thread_pool_usage:线程池用途,例如Tomcat、Dubbo、Undertow等。

连接池指标

指标描述

指标名

指标类型

采集间隔

维度

连接数

arms_connection_pool_connection_count

Gauge

15s

  • state:连接状态。

    • used

    • idle

  • pool_type: 连接池类型,例如Druid,c3p0。

  • url: 数据库连接串。

最小空闲连接数

arms_connection_pool_connection_min_idle_count

Gauge

15s

  • pool_type: 连接池类型,例如Druid,c3p0。

  • url: 数据库连接串。

最大空闲连接数

arms_connection_pool_connection_max_idle_count

Gauge

15s

  • pool_type: 连接池类型,例如Druid,c3p0。

  • url: 数据库连接串。

最大连接数

arms_connection_pool_connection_max_count

Gauge

15s

  • pool_type: 连接池类型,例如Druid,c3p0。

  • url: 数据库连接串。

阻塞的连接请求数

arms_connection_pool_pending_request_count

Counter

15s

  • pool_type: 连接池类型,例如Druid,c3p0。

  • url: 数据库连接串。

4.1.x以下探针版本

指标名称

指标

指标类型

采集间隔

维度

线程池核心线程数

arms_threadpool_core_size

Gauge

15s

无

线程池最大线程数

arms_threadpool_max_size

Gauge

15s

无

线程池活跃线程数

arms_threadpool_active_size

Gauge

15s

无

线程池队列大小

arms_threadpool_queue_size

Gauge

15s

无

线程池当前大小

arms_threadpool_current_size

Gauge

15s

无

线程池不同状态任务数

arms_threadpool_task_total

Gauge

15s

Status任务状态:

  • Scheduled:已调度

  • Completed:完成

  • Rejected:拒绝

指标存储实例说明

线程池/连接池指标均存储于核心指标库(metricstore-apm-metrics)。

定时任务指标

仅定时任务存在以下指标。

公共维度

维度名称

维度Key

服务名称

service

服务PID

pid

机器IP

serverIp

任务ID

rpc

指标列表

指标名称

指标

指标类型

采集间隔

单位

调度延迟

arms_$callType_delay_milliseconds

Gauge

15s

毫秒

指标存储实例说明

定时任务指标均存储于明细指标库(metricstore-apm-metrics-detail)。

Go Runtime指标

指标列表

指标名称

指标

指标类型

采集间隔

应用启动时长(ms)

arms_golang_runtime_uptime

Int64Counter

15s

当前应用Goroutinue的数量

arms_golang_process_runtime_go_goroutines

Gauge

15s

堆对象内存(bytes)

arms_golang_process_runtime_go_mem_heap_alloc

Gauge

15s

未分配或者回收了的堆内存

arms_golang_process_runtime_go_mem_heap_idle

Gauge

15s

被使用的堆内存

arms_golang_process_runtime_go_mem_heap_inuse

Gauge

15s

已分配的存活着的堆对象

arms_golang_process_runtime_go_mem_heap_objects

Gauge

15s

HeapIdle中已经被释放给操作系统的内存

arms_golang_process_runtime_go_mem_heap_released

Gauge

15s

向系统申请的虚拟内存大小

arms_golang_process_runtime_go_mem_heap_sys

Gauge

15s

当前存活的对象个数

arms_golang_process_runtime_go_mem_live_objects

Gauge

15s

程序开始后的GC次数

arms_golang_process_runtime_go_gc_count

Gauge

15s

程序累积的垃圾回收(stop-the-world)时间,即不可用时间

arms_golang_process_runtime_go_gc_pause_total_ns

Int64Counter

15s

GC时间分布

arms_golang_process_runtime_go_gc_pause_ns

Int64Histogram

15s

指标存储实例说明

Go Runtime指标均存储于核心指标库(metricstore-apm-metrics)。

Node.js 运行时指标

指标列表

指标名称

指标

采集类型

采集间隔

单位

说明

事件循环最小延迟

nodejs.eventloop.delay.min

Gauge

10s

纳秒

当前采集周期内的最小延迟

事件循环最大延迟

nodejs.eventloop.delay.max

Gauge

10s

纳秒

当前采集周期内的最大延迟

事件循环平均延迟

nodejs.eventloop.delay.mean

Gauge

10s

纳秒

当前采集周期内的平均延迟

事件循环延迟标准差

nodejs.eventloop.delay.stddev

Gauge

10s

纳秒

当前采集周期内延迟的波动程度

事件循环 P50 延迟

nodejs.eventloop.delay.p50

Gauge

10s

纳秒

当前采集周期内的 P50 延迟

事件循环 P90 延迟

nodejs.eventloop.delay.p90

Gauge

10s

纳秒

当前采集周期内的 P90 延迟

事件循环 P99 延迟

nodejs.eventloop.delay.p99

Gauge

10s

纳秒

当前采集周期内的 P99 延迟

事件循环延迟分位数

nodejs.eventloop.delay.quantile

Gauge

10s

纳秒

quantile:默认包含 0.5、0.75、0.9、0.95、0.99

事件循环延迟样本数

nodejs.eventloop.delay.samples

Gauge

10s

个

当前采集周期内的延迟样本数

事件循环利用率

nodejs.eventloop.utilization

Gauge

10s

比例(0~1)

事件循环活跃时间占比

V8 堆空间大小

v8js.memory.heap.limit

Gauge

10s

字节

v8js.heap.space.name:堆空间名称。表示当前空间大小,不是整个 V8 堆的最大允许值

V8 堆空间已用大小

v8js.memory.heap.used

Gauge

10s

字节

v8js.heap.space.name:堆空间名称

V8 堆空间使用率

v8js.memory.heap.utilization

Gauge

10s

比例(0~1)

v8js.heap.space.name:堆空间名称。已用大小/空间大小

V8 堆空间可用大小

v8js.heap.space.available_size

Gauge

10s

字节

v8js.heap.space.name:堆空间名称

V8 堆空间物理大小

v8js.heap.space.physical_size

Gauge

10s

字节

v8js.heap.space.name:堆空间名称。已提交的物理内存大小

GC 次数

v8js.gc.count

Gauge

10s

次

v8js.gc.type:GC 类型。当前采集周期内的 GC 次数

最近一次 GC 耗时

v8js.gc.duration

Gauge

10s

毫秒

v8js.gc.type:GC 类型。最近一次观测到的 GC 耗时,不是周期累计耗时

GC 暂停耗时分布

v8js.gc.pause.duration

Histogram

10s

毫秒

v8js.gc.type:GC 类型。记录每次 GC 暂停耗时

进程累计 CPU 时间

process.cpu.time

ObservableCounter

10s

秒

cpu.mode:user(用户态)、system(内核态)

进程 CPU 利用率

process.cpu.utilization

Gauge

10s

比例(0~1)

按采集间隔和 CPU 核数归一化,首次采集为 0

进程常驻内存

process.memory.usage

Gauge

10s

字节

进程 RSS,包括 JavaScript 堆和原生内存等

进程虚拟内存

process.memory.virtual

Gauge

10s

字节

仅 Linux,读取 /proc/self/status 中的 VmSize

进程线程数估算值

process.thread.count

Gauge

10s

个

按 CPU 核数与 libuv 线程池配置估算,非操作系统实际线程数

进程打开文件描述符数

process.open_file_descriptor.count

Gauge

10s

个

仅 Linux,读取 /proc/self/fd

进程累计上下文切换次数

process.context_switches

ObservableCounter

10s

次

仅 Linux。context_switch.type:voluntary(主动)、nonvoluntary(被动)

存储实例说明

Node.js Runtime 指标均存储于核心指标库(metricstore-apm-metrics)。

服务访问类型及可用维度

客户端类

  • 访问类型

    • http_client

    • dubbo_client

    • hsf_client

    • dsf_client

    • notify_client

    • grpc_client

    • thrift_client

    • sofa_client

    • mq_client

    • kafka_client

  • 维度

    • parent:上游服务的名称

    • ppid:上游服务PID

    • destId:请求对端扩展信息

    • endpoint:请求对端地址

    • excepType:异常ID

    • excepInfo:异常ID编码规则

    • excepName:异常名称

    • stackTraceId:异常栈ID

DB类

  • 访问类型

    • mysql

    • oracle

    • mariadb

    • postgresql

    • ppas

    • sqlserver

    • mongodb

    • dmdb

  • 维度

    • parent:上游服务的名称

    • ppid:上游服务PID

    • destId:数据库名称

    • endpoint:数据库地址

    • excepType:异常ID

    • excepInfo:异常ID编码规则

    • excepName:异常名称

    • stackTraceId:异常栈ID

    • sqlId:SQL语句ID

服务端类

  • 访问类型

    • http

    • dubbo

    • hsf

    • dsf

    • user_method

    • mq

    • kafka

    • grpc

    • thrift

    • sofa

  • 维度

    • prpc:上游接口

    • parent:上游服务的名称

    • ppid:上游服务PID

    • endpoint:服务地址

    • excepType:异常ID

    • excepInfo:异常ID编码规则

    • excepName:异常名称

    • stackTraceId:异常栈ID

定时任务类

  • 访问类型

    • xxl_job

    • spring_scheduled

    • quartz

    • elasticjob

    • jdk_timer

    • schedulerx

  • 维度

    • prpc:上游接口

    • parent:上游服务的名称

    • ppid:上游服务PID

    • excepType:异常ID

    • excepInfo:异常ID编码规则

    • excepName:异常名称

    • stackTraceId:异常栈ID