Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: app-jvm.yml support for international name aliases #1376

Merged
merged 4 commits into from
Dec 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions manager/src/main/resources/define/app-jvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,20 +138,35 @@ metrics:
# 指标组调度优先级(0->127)->(优先级高->低) 优先级低的指标组会等优先级高的指标组采集完成后才会被调度, 相同优先级的指标组会并行调度采集
# 优先级为0的指标组为可用性指标组,即它会被首先调度,采集成功才会继续调度其它指标组,采集失败则中断调度
priority: 0
i18n:
zh-CN: 虚拟机基础信息
en-US: Basic
# collect metrics content
# 具体监控指标列表
fields:
# 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: VmName
type: 1
i18n:
zh-CN: 名称
en-US: Vm Name
- field: VmVendor
type: 1
i18n:
zh-CN: 厂商
en-US: Vm Vendor
- field: VmVersion
type: 1
i18n:
zh-CN: 版本
en-US: Vm Version
- field: Uptime
type: 0
unit: ms
i18n:
zh-CN: 运行时长
en-US: Up time
# the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk
# 用于监控的协议,例: sql, ssh, http, telnet, wmi, snmp, sdk
protocol: jmx
Expand All @@ -172,22 +187,40 @@ metrics:

- name: memory_pool
priority: 1
i18n:
zh-CN: 内存池
en-US: Memory Pool
fields:
- field: name
type: 1
label: true
i18n:
zh-CN: 指标名称
en-US: Name
- field: committed
type: 0
unit: MB
i18n:
zh-CN: 已分配内存
en-US: Committed
- field: init
type: 0
unit: MB
i18n:
zh-CN: 初始化内存
en-US: Init
- field: max
type: 0
unit: MB
i18n:
zh-CN: 最大内存
en-US: Max
- field: used
type: 0
unit: MB
i18n:
zh-CN: 已使用内存
en-US: Used
units:
- committed=B->MB
- init=B->MB
Expand Down Expand Up @@ -225,15 +258,30 @@ metrics:

- name: code_cache
priority: 5
i18n:
zh-CN: 本地代码缓冲区
en-US: Code Cache
fields:
- field: committed
type: 0
i18n:
zh-CN: 已分配内存
en-US: Committed
- field: init
type: 0
i18n:
zh-CN: 初始化内存
en-US: Init
- field: max
type: 0
i18n:
zh-CN: 最大内存
en-US: Max
- field: used
type: 0
i18n:
zh-CN: 已使用内存
en-US: Used
aliasFields:
- Usage->committed
- Usage->init
Expand All @@ -259,17 +307,29 @@ metrics:

- name: class_loading
priority: 6
i18n:
zh-CN: 类加载信息
en-US: Class Loading
# collect metrics content
# 具体监控指标列表
fields:
# 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: LoadedClassCount
type: 0
i18n:
zh-CN: 当前已加载类数量
en-US: Loaded Class Count
- field: TotalLoadedClassCount
type: 0
i18n:
zh-CN: 已加载类总数量
en-US: Total Loaded Class Count
- field: UnloadedClassCount
type: 0
i18n:
zh-CN: 未加载类总数量
en-US: Unloaded Class Count
protocol: jmx
jmx:
host: ^_^host^_^
Expand All @@ -281,25 +341,46 @@ metrics:

- name: thread
priority: 7
i18n:
zh-CN: 线程信息
en-US: Thread
# collect metrics content
# 指标组中的具体监控指标
fields:
# 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: TotalStartedThreadCount
type: 0
i18n:
zh-CN: 已启动线程总数
en-US: Total Started Thread Count
- field: ThreadCount
type: 0
i18n:
zh-CN: 活跃线程数
en-US: Thread Count
- field: PeakThreadCount
type: 0
i18n:
zh-CN: 最大峰值线程数
en-US: Peak Thread Count
- field: DaemonThreadCount
type: 0
i18n:
zh-CN: 活跃守护线程数
en-US: Daemon Thread Count
- field: CurrentThreadUserTime
type: 0
unit: s
i18n:
zh-CN: 线程占用的CPU时间(用户态)
en-US: Current Thread User Time
- field: CurrentThreadCpuTime
type: 0
unit: s
i18n:
zh-CN: 线程占用的CPU时间
en-US: Current Thread CPU Time
units:
- CurrentThreadUserTime=NS->S
- CurrentThreadCpuTime=NS->S
Expand Down
Loading