This is an automated email from the ASF dual-hosted git repository.

zhaoqingran 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 ad9a4ab100 [improve] xugu.md and app-xugu.yml (#3918)
ad9a4ab100 is described below

commit ad9a4ab100edc534f16c9d24dbb6c951fbb46a41
Author: Logic <[email protected]>
AuthorDate: Wed Dec 17 18:51:58 2025 +0800

    [improve] xugu.md and app-xugu.yml (#3918)
---
 .../src/main/resources/define/app-xugu.yml         | 41 +++++++++++++++-------
 home/docs/help/xugu.md                             | 40 +++++++++------------
 .../current/help/xugu.md                           | 32 +++++++----------
 3 files changed, 58 insertions(+), 55 deletions(-)

diff --git a/hertzbeat-manager/src/main/resources/define/app-xugu.yml 
b/hertzbeat-manager/src/main/resources/define/app-xugu.yml
index 04d96bb7a1..0b15662995 100644
--- a/hertzbeat-manager/src/main/resources/define/app-xugu.yml
+++ b/hertzbeat-manager/src/main/resources/define/app-xugu.yml
@@ -173,70 +173,82 @@ metrics:
     fields:
       - field: G_MEM
         type: 0
-        unit: B
+        unit: MB
         i18n:
           zh-CN: 全局内存消耗
           en-US: Global Memory Consumption
       - field: CATA_MEM
         type: 0
-        unit: B
+        unit: MB
         i18n:
           zh-CN: CATALOG内存消耗
           en-US: CATALOG memory consumption
       - field: TRAN_MEM
         type: 0
-        unit: B
+        unit: MB
         i18n:
           zh-CN: 事务内存消耗
           en-US: Transactional memory consumption
       - field: NET_MEM
         type: 0
-        unit: B
+        unit: MB
         i18n:
           zh-CN: 用户连接用内存消耗
           en-US: Memory consumption for user connections
       - field: TASK_MEM
         type: 0
-        unit: B
+        unit: MB
         i18n:
           zh-CN: 任务线程消耗
           en-US: Task Thread Consumption
       - field: MSG_MEM
         type: 0
-        unit: B
+        unit: MB
         i18n:
           zh-CN: 内部通讯消息内存消耗
           en-US: Internal communication message memory consumption
       - field: LOCK_MEM
         type: 0
-        unit: B
+        unit: MB
         i18n:
           zh-CN: 局部锁内存消耗
           en-US: Local lock memory consumption
       - field: GLOCK_MEM
         type: 0
-        unit: B
+        unit: MB
         i18n:
           zh-CN: 全局锁内存消耗
           en-US: Global lock memory consumption
       - field: DLCHK_MEM
         type: 0
-        unit: B
+        unit: MB
         i18n:
           zh-CN: 死锁检测内存消耗
           en-US: Deadlock detection memory consumption
       - field: MODI_MEM
         type: 0
-        unit: B
+        unit: MB
         i18n:
           zh-CN: 变更日志内存消耗
           en-US: Change Log Memory Consumption
       - field: PROC_MEM
         type: 0
-        unit: B
+        unit: MB
         i18n:
           zh-CN: 过程执行机内存消耗
           en-US: Process Execution Machine Memory Consumption
+    units:
+      - G_MEM=B->MB
+      - CATA_MEM=B->MB
+      - TRAN_MEM=B->MB
+      - NET_MEM=B->MB
+      - TASK_MEM=B->MB
+      - MSG_MEM=B->MB
+      - LOCK_MEM=B->MB
+      - GLOCK_MEM=B->MB
+      - DLCHK_MEM=B->MB
+      - MODI_MEM=B->MB
+      - PROC_MEM=B->MB
     # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, 
sdk
     protocol: jdbc
     # the config content when protocol is jdbc
@@ -282,16 +294,19 @@ metrics:
           en-US: Number of data blocks written to disk
       - field: DISK_READ_BYTES
         type: 0
-        unit: B
+        unit: MB
         i18n:
           zh-CN: 磁盘读取字节数
           en-US: Disk read bytes
       - field: DISK_WRITE_BYTES
         type: 0
-        unit: B
+        unit: MB
         i18n:
           zh-CN: 磁盘写入字节数
           en-US: Bytes written to disk
+    units:
+      - DISK_READ_BYTES=B->MB
+      - DISK_WRITE_BYTES=B->MB
     protocol: jdbc
     jdbc:
       host: ^_^host^_^
diff --git a/home/docs/help/xugu.md b/home/docs/help/xugu.md
index 9c61863895..679014df15 100644
--- a/home/docs/help/xugu.md
+++ b/home/docs/help/xugu.md
@@ -7,12 +7,6 @@ keywords: [ Open Source Monitoring System, Open Source 
Database Monitoring, xugu
 
 > Collect and monitor common performance metrics of the xugu database. 
 > Supports xuguDB.v12.
 
-### Note: You must add the xugu JDBC driver JAR
-
-- Download the xugu JDBC driver JAR, for example: xugu-jdbc-12.3.5.jar. 
<https://mvnrepository.com/artifact/com.xugudb/xugu-jdbc/12.3.5>
-- Copy this JAR file to the `ext-lib` directory under the HertzBeat 
installation directory.
-- Restart the HertzBeat service.
-
 ### Configuration Parameters
 
 | Parameter Name | Description                                                 
                |
@@ -46,23 +40,23 @@ keywords: [ Open Source Monitoring System, Open Source 
Database Monitoring, xugu
 
 | Metric Name | Unit | Description                         |
 |------------|------|-------------------------------------|
-| G_MEM      | B    | Global memory consumption            |
-| CATA_MEM   | B    | CATALOG memory consumption           |
-| TRAN_MEM   | B    | Transaction memory consumption       |
-| NET_MEM    | B    | User connection memory consumption   |
-| TASK_MEM   | B    | Task thread memory consumption       |
-| MSG_MEM    | B    | Internal communication message memory consumption |
-| LOCK_MEM   | B    | Local lock memory consumption        |
-| GLOCK_MEM  | B    | Global lock memory consumption       |
-| DLCHK_MEM  | B    | Deadlock detection memory consumption|
-| MODI_MEM   | B    | Change log memory consumption        |
-| PROC_MEM   | B    | Procedure execution engine memory consumption |
+| G_MEM      | MB   | Global memory consumption            |
+| CATA_MEM   | MB   | CATALOG memory consumption           |
+| TRAN_MEM   | MB   | Transaction memory consumption       |
+| NET_MEM    | MB   | User connection memory consumption   |
+| TASK_MEM   | MB   | Task thread memory consumption       |
+| MSG_MEM    | MB   | Internal communication message memory consumption |
+| LOCK_MEM   | MB   | Local lock memory consumption        |
+| GLOCK_MEM  | MB   | Global lock memory consumption       |
+| DLCHK_MEM  | MB   | Deadlock detection memory consumption|
+| MODI_MEM   | MB   | Change log memory consumption        |
+| PROC_MEM   | MB   | Procedure execution engine memory consumption |
 
 #### Metric Set: Disk Information
 
-| Metric Name       | Unit | Description                         |
-|-------------------|------|-------------------------------------|
-| DISK_READ_NUM     | Times  | Number of disk block read operations |
-| DISK_WRITE_NUM    | Times  | Number of disk block write operations |
-| DISK_READ_BYTES   | B    | Number of bytes read from disk       |
-| DISK_WRITE_BYTES  | B    | Number of bytes written to disk      |
+| Metric Name       | Unit  | Description                         |
+|-------------------|-------|-------------------------------------|
+| DISK_READ_NUM     | Times | Number of disk block read operations |
+| DISK_WRITE_NUM    | Times | Number of disk block write operations |
+| DISK_READ_BYTES   | MB    | Number of bytes read from disk       |
+| DISK_WRITE_BYTES  | MB    | Number of bytes written to disk      |
diff --git 
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/xugu.md 
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/xugu.md
index 877001a3f1..dcefd9b009 100644
--- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/xugu.md
+++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/xugu.md
@@ -7,12 +7,6 @@ keywords: [ 开源监控系统, 开源数据库监控, xugu数据库监控 ]
 
 > 对xugu数据库的通用性能指标进行采集监控。支持xuguDB.v12。
 
-### 注意,必须添加 xugu jdbc 驱动 jar
-
-- 下载 xugu jdbc driver jar, 例如 xugu-jdbc-12.3.5.jar. 
<https://mvnrepository.com/artifact/com.xugudb/xugu-jdbc/12.3.5>
-- 将此 jar 包拷贝放入 HertzBeat 的安装目录下的 `ext-lib` 目录下.
-- 重启 HertzBeat 服务。
-
 ### 配置参数
 
 | 参数名称   | 参数帮助描述                                               |
@@ -46,17 +40,17 @@ keywords: [ 开源监控系统, 开源数据库监控, xugu数据库监控 ]
 
 | 指标名称      | 指标单位 | 指标帮助描述      |
 |-----------|------|-------------|
-| G_MEM     | B    | 全局内存消耗      |
-| CATA_MEM  | B    | CATALOG内存消耗 |
-| TRAN_MEM  | B    | 事务内存消耗      |
-| NET_MEM   | B    | 用户连接用内存消耗   |
-| TASK_MEM  | B    | 任务线程消耗      |
-| MSG_MEM   | B    | 内部通讯消息内存消耗  |
-| LOCK_MEM  | B    | 局部锁内存消耗     |
-| GLOCK_MEM | B    | 全局锁内存消耗     |
-| DLCHK_MEM | B    | 死锁检测内存消耗    |
-| MODI_MEM  | B    | 变更日志内存消耗    |
-| PROC_MEM  | B    | 过程执行机内存消耗   |
+| G_MEM     | MB   | 全局内存消耗      |
+| CATA_MEM  | MB   | CATALOG内存消耗 |
+| TRAN_MEM  | MB   | 事务内存消耗      |
+| NET_MEM   | MB   | 用户连接用内存消耗   |
+| TASK_MEM  | MB   | 任务线程消耗      |
+| MSG_MEM   | MB   | 内部通讯消息内存消耗  |
+| LOCK_MEM  | MB   | 局部锁内存消耗     |
+| GLOCK_MEM | MB   | 全局锁内存消耗     |
+| DLCHK_MEM | MB   | 死锁检测内存消耗    |
+| MODI_MEM  | MB   | 变更日志内存消耗    |
+| PROC_MEM  | MB   | 过程执行机内存消耗   |
 
 #### 指标集合:磁盘 信息
 
@@ -64,5 +58,5 @@ keywords: [ 开源监控系统, 开源数据库监控, xugu数据库监控 ]
 |------------------|------|-----------|
 | DISK_READ_NUM    | 次    | 数据块磁盘读取次数 |
 | DISK_WRITE_NUM   | 次    | 磁盘写入数据块次数 |
-| DISK_READ_BYTES  | B    | 磁盘读取字节数   |
-| DISK_WRITE_BYTES | B    | 磁盘写入字节数   |
+| DISK_READ_BYTES  | MB   | 磁盘读取字节数   |
+| DISK_WRITE_BYTES | MB   | 磁盘写入字节数   |


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to