diff --git a/manager/src/main/resources/define/app-dynamic_tp.yml b/manager/src/main/resources/define/app-dynamic_tp.yml index 52459aae09e..9efc014aed6 100644 --- a/manager/src/main/resources/define/app-dynamic_tp.yml +++ b/manager/src/main/resources/define/app-dynamic_tp.yml @@ -110,6 +110,9 @@ metrics: # metrics - thread_pool # 监控指标 - thread_pool - name: thread_pool + i18n: + zh-CN: 线程池 + en-US: thread pool # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue # 指标采集调度优先级(0->127)->(优先级高->低) 优先级低的指标会等优先级高的指标采集完成后才会被调度, 相同优先级的指标会并行调度采集 @@ -121,19 +124,40 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field # field-指标名称, type-指标类型(0-number数字,1-string字符串), unit-指标单位('%','ms','MB'), label-是否是指标标签字段 - field: pool_name + i18n: + zh-CN: 池名称 + en-US: pool name type: 1 label: true - field: queue_type + i18n: + zh-CN: 队列类型 + en-US: queue type type: 1 - field: core_pool_size + i18n: + zh-CN: 核心线程数 + en-US: core pool size type: 0 - field: maximum_pool_size + i18n: + zh-CN: 最大线程数 + en-US: maximum pool size type: 0 - field: fair + i18n: + zh-CN: 公平 + en-US: fair type: 1 - field: reject_handler_name type: 1 + i18n: + zh-CN: 拒绝策略 + en-US: reject handler name - field: dynamic + i18n: + zh-CN: 动态 + en-US: dynamic type: 1 # (optional)metrics field alias name, it is used as an alias field to map and convert the collected data and metrics field # (可选)监控指标别名, 做为中间字段与采集数据字段和指标字段映射转换 @@ -185,36 +209,78 @@ metrics: parseScript: '$.*' - name: thread_pool_running + i18n: + zh-CN: 运行中的线程池 + en-US: thread pool running priority: 1 fields: - field: pool_name + i18n: + zh-CN: 池名称 + en-US: pool name type: 1 label: true - field: queue_capacity + i18n: + zh-CN: 队列容量 + en-US: queue capacity type: 0 unit: MB - field: queue_size + i18n: + zh-CN: 队列大小 + en-US: queue size type: 0 - field: queue_remaining_capacity + i18n: + zh-CN: 队列剩余容量 + en-US: queue remaining capacity type: 0 unit: MB - field: active_count + i18n: + zh-CN: 活动线程数 + en-US: active count type: 0 - field: task_count + i18n: + zh-CN: 任务数 + en-US: task count type: 0 - field: completed_task_count + i18n: + zh-CN: 完成的任务数 + en-US: completed task count type: 0 - field: largest_pool_size + i18n: + zh-CN: 最大线程数 + en-US: largest pool size type: 0 - field: pool_size + i18n: + zh-CN: 线程池大小 + en-US: pool size type: 0 - field: wait_task_count + i18n: + zh-CN: 等待任务数 + en-US: wait task count type: 0 - field: reject_count + i18n: + zh-CN: 拒绝数 + en-US: reject count type: 0 - field: run_timeout_count + i18n: + zh-CN: 运行超时数 + en-US: run timeout count type: 0 - field: queue_timeout_count + i18n: + zh-CN: 队列超时数 + en-US: queue timeout count type: 0 aliasFields: - poolName