service_metric(服务指标)
指标
字段名 | 类型 | 字段说明 | 单位 |
request_count | Gague | 总请求数 | 无 |
error_request_count | Gague | 错误请求数 | 无 |
slow_request_count | Gague | 慢调用请求数 | 无 |
duration_$type | Gague | 耗时 | ms |
range_count_duration | histogram | 请求耗时分布桶 | 0,1,5,10,50,100,200,300,400,500,600,700,800,900,1000,1500,2000,3000,4000,5000,7000,10000,15000 |
说明:
$type
按需替换为avg
、min
、max
。维度
字段名 | 字段说明 |
tapm.instance.key | APM 实例 ID |
span.kind | Span 类型 |
service.component | 组件类型 |
service.name | 服务名 |
peer.service | 上游服务名 |
peer.operation | 上游接口名 |
operation | 接口名 |
service.instance | 服务实例 |
peer.instance | 上游实例 |
status.code | 请求状态 |
status_code_xx | 收敛后的状态码 |
error.object | 错误类型 |
agent.version | 探针版本号 |
k8s.deployment.name | Kubernetes 负载名 |
k8s.pod.name | Kubernetes Pod 名 |
k8s.namespace.name | Kubernetes 命名空间 |
k8s.cluster.id | TKE 集群 ID |
k8s.region | TKE 集群地域 |
k8s.pod.ip | Kubernetes Pod IP |
k8s.node.ip | Kubernetes 节点 IP |
error_metric(异常指标)
指标
字段名 | 类型 | 字段说明 | 单位 |
error_request_count | Gague | 错误请求数 | 个 |
last_error_occur_time | Gague | 错误最后一次发生时间 | ms |
维度
字段名 | 字段说明 |
tapm.instance.key | APM 实例 ID |
span.kind | Span 类型 |
service.component | 组件类型 |
service.name | 服务名 |
peer.service | 上游服务名 |
operation | 接口名 |
service.instance | 服务实例 |
error.object | 错误类型 |
sql_metric(数据库指标)
指标
字段名 | 类型 | 字段说明 | 单位 |
request_count | Gague | 请求数量 | 无 |
error_request_count | Gague | 错误请求数 | 无 |
last_error_occur_time | Gague | 错误最后一次发生时间 | ms |
duration_avg | Gague | 平均耗时 | ms |
slow_sql_count | Gague | 慢 SQL 数量 | 无 |
维度
字段名 | 字段说明 |
tapm.instance.key | APM 实例 ID |
span.kind | Span 类型 |
service.component | 组件类型 |
service.name | 服务名 |
peer.service | 上游服务名 |
db.operation | 操作类型 |
service.instance | 服务实例 |
db.statement | 执行语句 |
db.ip | IP 地址 |
db.instance | 数据库的实例地址 |
error.object | 错误类型 |
runtime_metric(JVM 指标)
指标
字段名 | 类型 | 字段说明 | 单位 |
gc_full_count_$type | Gague | Full GC 次数 | 无 |
gc_young_count_$type | Gague | Young GC 次数 | 无 |
gc_full_time_$type | Gague | Full GC 时间 | ms |
gc_young_time_$ype | Gague | Young GC 时间 | ms |
cpu_usage_percent_avg | Gague | CPU 平均使用量 | % |
thread_live_count_$type | Gague | Live 线程数量 | 无 |
thread_daemon_count_$type | Gague | Daemon 线程数量 | 无 |
thread_peak_count_$type | Gague | Peak 线程数量 | 无 |
memory_area_heap_used_$type | Gague | JVM 堆内存使用量 | mb |
memory_pool_oldgen_usage_used_$type | Gague | JVM 老年代内存使用量 | mb |
memory_pool_newgen_usage_used_$type | Gague | JVM 新生代内存使用量 | mb |
memory_pool_survivor_usage_used_$type | Gague | JVM 幸存者区内存使用量 | mb |
memory_area_heap_max_avg | Gague | JVM 内存区域最大大小平均值 | mb |
memory_area_heap_commit_avg | Gague | JVM 内存区域已提交大小平均值 | mb |
memory_area_non_heap_used_avg | Gague | 非堆区域使用大小平均值 | mb |
memory_area_non_heap_max_avg | Gague | 非堆区域使用最大大小平均值 | mb |
memory_area_non_heap_commit_avg | Gague | 非堆区域已提交大小平均值 | mb |
thread_blocked_count_avg | Gague | Blocked 线程数量平均值 | 无 |
thread_new_count_avg | Gague | New 线程数量平均值 | 无 |
thread_terminated_count_avg | Gague | Terminated 线程数量平均值 | 无 |
thread_time_waiting_count_avg | Gague | Time_waiting 线程数量平均值 | 无 |
thread_waiting_count_avg | Gague | Waiting 线程数量平均值 | 无 |
thread_runnable_count_avg | Gague | Runnable 线程数量平均值 | 无 |
说明:
$type
按需替换为avg
、min
、max
。维度
字段名 | 字段说明 |
tapm.instance.key | APM 实例 ID |
service.name | 服务名 |
service.instance | 服务实例 |
mq_metric(MQ 指标)
指标
字段名 | 类型 | 字段说明 | 单位 |
request_count | Gague | 总请求数 | 无 |
error_request_count | Gague | 错误请求数 | 无 |
duration_avg | Gague | 平均耗时 | ms |
range_count_duration | histogram | 请求耗时分布桶 | 0,1,5,10,50,100,200,300,400,500,600,700,800,900,1000,1500,2000,3000 |
维度
字段名 | 字段说明 |
tapm.instance.key | APM 实例 ID |
span.kind | Span 类型 |
component | 组件类型 |
service.name | 服务名 |
peer.service | 上游服务名 |
operation | 接口名 |
service.instance | 服务实例 |
status.code | 请求状态 |
status_code_xx | 收敛后的状态码 |
error.object | 错误类型 |
service.instance | 服务实例 |
mq.broker | 消息队列的 Broker 地址 |
mq.topic | 消息队列 Topic 名称 |