This is an automated email from the ASF dual-hosted git repository.
gaoxingcun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
The following commit(s) were added to refs/heads/master by this push:
new c6a995a31 [doc] I18n for monitoring template yml metrics (#1888)
c6a995a31 is described below
commit c6a995a31a76c0f9c827b92b17666acd8f91e9d0
Author: Zhang Yuxuan <[email protected]>
AuthorDate: Mon Apr 29 21:33:02 2024 +0800
[doc] I18n for monitoring template yml metrics (#1888)
Signed-off-by: Zhang Yuxuan <[email protected]>
---
manager/src/main/resources/define/app-dm.yml | 30 ++++++++++++
.../src/main/resources/define/app-opengauss.yml | 53 ++++++++++++++++++++++
.../src/main/resources/define/app-sqlserver.yml | 49 +++++++++++++++++++-
3 files changed, 131 insertions(+), 1 deletion(-)
diff --git a/manager/src/main/resources/define/app-dm.yml
b/manager/src/main/resources/define/app-dm.yml
index c9ecd8e4f..bee8003d6 100644
--- a/manager/src/main/resources/define/app-dm.yml
+++ b/manager/src/main/resources/define/app-dm.yml
@@ -101,6 +101,9 @@ params:
metrics:
# metrics - basic
- name: basic
+ i18n:
+ zh-CN: 基本信息
+ en-US: Basic Info
# 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
priority: 0
@@ -108,10 +111,19 @@ metrics:
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: PORT_NUM
+ i18n:
+ zh-CN: 端口号
+ en-US: Port Number
type: 1
- field: CTL_PATH
+ i18n:
+ zh-CN: 控制路径
+ en-US: Control Path
type: 1
- field: MAX_SESSIONS
+ i18n:
+ zh-CN: 最大会话数
+ en-US: Max Sessions
type: 0
# (optional)metrics field alias name, it is used as an alias field to map
and convert the collected data and metrics field
aliasFields:
@@ -143,9 +155,15 @@ metrics:
url: ^_^url^_^
- name: status
+ i18n:
+ zh-CN: 状态
+ en-US: Status
priority: 1
fields:
- field: status
+ i18n:
+ zh-CN: 状态
+ en-US: Status
type: 1
protocol: jdbc
jdbc:
@@ -163,13 +181,25 @@ metrics:
- name: thread
+ i18n:
+ zh-CN: 线程
+ en-US: Thread
priority: 2
fields:
- field: dm_sql_thd
+ i18n:
+ zh-CN: SQL线程数
+ en-US: SQL Thread
type: 0
- field: dm_io_thd
+ i18n:
+ zh-CN: I/O线程数
+ en-US: I/O Thread
type: 0
- field: dm_quit_thd
+ i18n:
+ zh-CN: 退出线程数
+ en-US: Quit Thread
type: 0
aliasFields:
- dm_sql_thd
diff --git a/manager/src/main/resources/define/app-opengauss.yml
b/manager/src/main/resources/define/app-opengauss.yml
index c7ac8e32a..537dde3cf 100644
--- a/manager/src/main/resources/define/app-opengauss.yml
+++ b/manager/src/main/resources/define/app-opengauss.yml
@@ -83,20 +83,40 @@ metrics:
- name: basic
# 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)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集
+ # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度
+ i18n:
+ zh-CN: 基本信息
+ en-US: Basic Info
priority: 0
# monitor metrics list
fields:
# metric information includes field name, type field type: 0-number,
1-string, label-whether it is a metric label field, unit-metric unit
- field: server_version
+ i18n:
+ zh-CN: 数据库版本
+ en-US: Server Version
type: 1
label: true
- field: port
+ i18n:
+ zh-CN: 端口号
+ en-US: Port
type: 1
- field: server_encoding
+ i18n:
+ zh-CN: 数据库编码格式
+ en-US: Encoding
type: 1
- field: data_directory
+ i18n:
+ zh-CN: 数据存储目录
+ en-US: Data Directory
type: 1
- field: max_connections
+ i18n:
+ zh-CN: 最大连接数
+ en-US: Max Connection
type: 0
unit: sbc
protocol: jdbc
@@ -117,30 +137,57 @@ metrics:
url: ^_^url^_^
- name: state
+ i18n:
+ zh-CN: 状态
+ en-US: Status
priority: 1
fields:
# metric information includes field name, type field type: 0-number,
1-string, label-whether it is a metric label field, unit-metric unit
- field: name
+ i18n:
+ zh-CN: 名称
+ en-US: Name
type: 1
- field: conflicts
+ i18n:
+ zh-CN: 冲突次数
+ en-US: Conflicts
type: 0
unit: times
- field: deadlocks
+ i18n:
+ zh-CN: 死锁次数
+ en-US: Deadlocks
type: 0
unit: times
- field: blks_read
+ i18n:
+ zh-CN: 块读取数
+ en-US: Blocks Read
type: 0
unit: blocks per second
- field: blks_hit
+ i18n:
+ zh-CN: 块命中数
+ en-US: Blocks Hit
type: 0
unit: blocks per second
- field: blk_read_time
+ i18n:
+ zh-CN: 块读取时间
+ en-US: Block Read Time
type: 0
unit: ms
- field: blk_write_time
+ i18n:
+ zh-CN: 块写入时间
+ en-US: Block Write
type: 0
unit: ms
- field: stats_reset
+ i18n:
+ zh-CN: 统计信息重置时间
+ en-US: States Reset
type: 1
protocol: jdbc
jdbc:
@@ -160,10 +207,16 @@ metrics:
url: ^_^url^_^
- name: activity
+ i18n:
+ zh-CN: 活跃进程
+ en-US: Activity
priority: 2
fields:
# metric information includes field name, type field type: 0-number,
1-string, label-whether it is a metric label field, unit-metric unit
- field: running
+ i18n:
+ zh-CN: 运行中进程数
+ en-US: Running
type: 0
unit: sbc
protocol: jdbc
diff --git a/manager/src/main/resources/define/app-sqlserver.yml
b/manager/src/main/resources/define/app-sqlserver.yml
index a577cbeaa..ad339c618 100644
--- a/manager/src/main/resources/define/app-sqlserver.yml
+++ b/manager/src/main/resources/define/app-sqlserver.yml
@@ -119,6 +119,9 @@ params:
metrics:
# metrics - basic
- name: basic
+ i18n:
+ zh-CN: 基本信息
+ en-US: Basic
# 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
priority: 0
@@ -126,15 +129,30 @@ metrics:
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: machine_name
+ i18n:
+ zh-CN: 机器名称
+ en-US: Machine Name
type: 1
label: true
- field: server_name
+ i18n:
+ zh-CN: 数据库服务器名称
+ en-US: Server Name
type: 1
- field: version
+ i18n:
+ zh-CN: 数据库版本
+ en-US: Version
type: 1
- field: edition
+ i18n:
+ zh-CN: 版本类型
+ en-US: Edition
type: 1
- field: start_time
+ i18n:
+ zh-CN: 启动时间
+ en-US: Start Time
type: 1
# the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp,
sdk
protocol: jdbc
@@ -162,21 +180,45 @@ metrics:
url: ^_^url^_^
- name: performance_counters
+ i18n:
+ zh-CN: 性能指标
+ en-US: Performance Counters
priority: 1
fields:
- field: database_pages
+ i18n:
+ zh-CN: 数据库页数
+ en-US: Database Pages
type: 0
- field: target_pages
+ i18n:
+ zh-CN: 目标页数
+ en-US: Target Pages
type: 0
- field: page_life_expectancy
+ i18n:
+ zh-CN: 页面平均寿命
+ en-US: Page Life Expectancy
type: 0
- field: buffer_cache_hit_ratio
+ i18n:
+ zh-CN: 缓存命中率
+ en-US: Buffer Cache Hit Ratio
type: 0
- field: checkpoint_pages_sec
+ i18n:
+ zh-CN: 每秒写入检查点页数
+ en-US: Checkpoint Pages/sec
type: 0
- field: page_reads_sec
+ i18n:
+ zh-CN: 每秒读取页面数
+ en-US: Page Reads/sec
type: 0
- field: page_writes_sec
+ i18n:
+ zh-CN: 每秒写入页面数
+ en-US: Page Writes/sec
type: 0
# (optional)metrics field alias name, it is used as an alias field to map
and convert the collected data and metrics field
aliasFields:
@@ -211,11 +253,16 @@ metrics:
url: ^_^url^_^
- name: connection
+ i18n:
+ zh-CN: 连接情况
+ en-US: Connection
priority: 1
fields:
- field: user_connection
+ i18n:
+ zh-CN: 连接数
+ en-US: User Connection
type: 0
- unit: 连接数
protocol: jdbc
jdbc:
host: ^_^host^_^
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]