基于湖库一体架构,统一管理结构化、半结构化与非结构化等多模态数据,一个系统承载事务处理、实时分析与 AI 工作负载。
线程池
更新时间:2026-08-03 16:09:20
本节介绍 Logservice 线程池相关的监控指标。
logservice_nonblocking_thread_pool_worker_count
指标介绍
nonblocking 线程池工作线程数,反映线程池繁忙程度,按 module 维度区分。
指标参数说明
| 指标项 | 指标名称 | 单位 |
|---|---|---|
| thread_pool_worker_count{pool_type="nonblocking"} | logservice_nonblocking_thread_pool_worker_count | - |
计算表达式
sum(rate(thread_pool_worker_count{pool_type="nonblocking",@LABELS}[@INTERVAL])) by (@GBLABELS)
Prometheus 采集
通过 prometheusInput 从 http://127.0.0.1:${monagent.logservice.exporter.port}/metrics 采集 thread_pool_worker_count 指标。
logservice_nonblocking_thread_pool_queue_depth
指标介绍
nonblocking 线程池任务队列积压程度(平均值),按 module 维度区分。
指标参数说明
| 指标项 | 指标名称 | 单位 |
|---|---|---|
| thread_pool_queue_depth{pool_type="nonblocking"} | logservice_nonblocking_thread_pool_queue_depth | - |
计算表达式
avg(thread_pool_queue_depth{pool_type="nonblocking",@LABELS}) by (@GBLABELS)
Prometheus 采集
通过 prometheusInput 从 http://127.0.0.1:${monagent.logservice.exporter.port}/metrics 采集 thread_pool_queue_depth 指标。
logservice_nonblocking_thread_pool_active_task_count
指标介绍
nonblocking 线程池正在运行但未结束的 task 数量,反映线程池工作负载,按 module 维度区分。
指标参数说明
| 指标项 | 指标名称 | 单位 |
|---|---|---|
| thread_pool_active_task_count{pool_type="nonblocking"} | logservice_nonblocking_thread_pool_active_task_count | - |
计算表达式
sum(rate(thread_pool_active_task_count{pool_type="nonblocking",@LABELS}[@INTERVAL])) by (@GBLABELS)
Prometheus 采集
通过 prometheusInput 从 http://127.0.0.1:${monagent.logservice.exporter.port}/metrics 采集 thread_pool_active_task_count 指标。