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

gongchao 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 a8c1c4839 [improve] add more yml i18n (#2505)
a8c1c4839 is described below

commit a8c1c483900503c56df1241268e001dd309c0678
Author: aias00 <[email protected]>
AuthorDate: Mon Aug 12 07:46:24 2024 +0800

    [improve] add more yml i18n (#2505)
    
    Co-authored-by: liutianyou <[email protected]>
---
 manager/src/main/resources/define/app-activemq.yml | 121 ++++++++++++++++++++-
 manager/src/main/resources/define/app-airflow.yml  |  14 +--
 .../src/main/resources/define/app-almalinux.yml    |   6 +-
 manager/src/main/resources/define/app-doris_be.yml |  74 ++++++++++++-
 manager/src/main/resources/define/app-doris_fe.yml |  44 +++++++-
 5 files changed, 245 insertions(+), 14 deletions(-)

diff --git a/manager/src/main/resources/define/app-activemq.yml 
b/manager/src/main/resources/define/app-activemq.yml
index 6c1878631..62e3157b8 100644
--- a/manager/src/main/resources/define/app-activemq.yml
+++ b/manager/src/main/resources/define/app-activemq.yml
@@ -35,7 +35,7 @@ params:
   - field: host
     # name-param field display i18n name
     name:
-      zh-CN: 目标Host
+      zh-CN: 目标 Host
       en-US: Target Host
     # type-param field type(most mapping the html input type)
     type: host
@@ -45,7 +45,7 @@ params:
   - field: port
     # name-param field display i18n name
     name:
-      zh-CN: JMX端口
+      zh-CN: JMX 端口
       en-US: JMX Port
     # type-param field type(most mapping the html input type)
     type: number
@@ -148,50 +148,110 @@ metrics:
       url: ^_^url^_^
 
   - name: broker
+    i18n:
+      zh-CN: Broker 信息
+      en-US: Broker Info
     priority: 1
     fields:
       - field: BrokerName
         type: 1
         label: true
+        i18n:
+          zh-CN: Broker 名称
+          en-US: Broker Name
       - field: BrokerVersion
+        i18n:
+          zh-CN: Broker 版本
+          en-US: Broker Version
         type: 1
       - field: Uptime
+        i18n:
+          zh-CN: 启动时长
+          en-US: Uptime
         type: 1
       - field: UptimeMillis
+        i18n:
+          zh-CN: 启动时长(毫秒)
+          en-US: Uptime Millis
         type: 0
         unit: ms
       - field: Persistent
+        i18n:
+          zh-CN: 持久化
+          en-US: Persistent
         type: 1
       - field: DataDirectory
+        i18n:
+          zh-CN: 数据目录
+          en-US: Data Directory
         type: 1
       - field: MemoryPercentUsage
+        i18n:
+          zh-CN: 内存使用率
+          en-US: Memory Percent Usage
         type: 0
         unit: '%'
       - field: StorePercentUsage
+        i18n:
+          zh-CN: 存储使用率
+          en-US: Store Percent Usage
         type: 0
         unit: '%'
       - field: TempPercentUsage
+        i18n:
+          zh-CN: 临时使用率
+          en-US: Temp Percent Usage
         type: 0
         unit: '%'
       - field: CurrentConnectionsCount
+        i18n:
+          zh-CN: 当前连接数
+          en-US: Current Connections Count
         type: 0
       - field: TotalConnectionsCount
+        i18n:
+          zh-CN: 总连接数
+          en-US: Total Connections Count
         type: 0
       - field: TotalEnqueueCount
+        i18n:
+          zh-CN: 总入队数
+          en-US: Total Enqueue Count
         type: 0
       - field: TotalDequeueCount
+        i18n:
+          zh-CN: 总出队数
+          en-US: Total Dequeue Count
         type: 0
       - field: TotalConsumerCount
+        i18n:
+          zh-CN: 消费者总数
+          en-US: Total Consumer Count
         type: 0
       - field: TotalProducerCount
+        i18n:
+          zh-CN: 生产者总数
+          en-US: Total Producer Count
         type: 0
       - field: TotalMessageCount
+        i18n:
+          zh-CN: 总消息数
+          en-US: Total Message Count
         type: 0
       - field: AverageMessageSize
+        i18n:
+          zh-CN: 平均消息大小
+          en-US: Average Message Size
         type: 0
       - field: MaxMessageSize
+        i18n:
+          zh-CN: 最大消息大小
+          en-US: Max Message Size
         type: 0
       - field: MinMessageSize
+        i18n:
+          zh-CN: 最小消息大小
+          en-US: Min Message Size
         type: 0
     protocol: jmx
     jmx:
@@ -208,52 +268,109 @@ metrics:
       - field: Name
         type: 1
         label: true
+        i18n:
+          zh-CN: Topic 名称
+          en-US: Topic Name
       - field: MemoryLimit
         type: 0
         unit: MB
+        i18n:
+          zh-CN: 内存限制
+          en-US: Memory Limit
       - field: MemoryPercentUsage
         type: 0
         unit: '%'
+        i18n:
+          zh-CN: 内存使用率
+          en-US: Memory Percent Usage
       - field: ProducerCount
         type: 0
+        i18n:
+          zh-CN: 生产者数量
+          en-US: Producer Count
       - field: ConsumerCount
         type: 0
+        i18n:
+          zh-CN: 消费者数量
+          en-US: Consumer Count
       - field: EnqueueCount
         type: 0
+        i18n:
+          zh-CN: 入队数量
+          en-US: Enqueue Count
       - field: DequeueCount
         type: 0
+        i18n:
+          zh-CN: 出队数量
+          en-US: Dequeue Count
       - field: ForwardCount
         type: 0
+        i18n:
+          zh-CN: 转发数量
+          en-US: Forward Count
       - field: InFlightCount
         type: 0
+        i18n:
+          zh-CN: 进行中数量
+          en-US: In Flight Count
       - field: DispatchCount
         type: 0
+        i18n:
+          zh-CN: 分发数量
+          en-US: Dispatch Count
       - field: ExpiredCount
         type: 0
+        i18n:
+          zh-CN: 过期数量
+          en-US: Expired Count
       - field: StoreMessageSize
         type: 0
         unit: B
+        i18n:
+          zh-CN: 存储消息大小
+          en-US: Store Message Size
       - field: AverageEnqueueTime
         type: 0
         unit: ms
+        i18n:
+          zh-CN: 平均入队时间
+          en-US: Average Enqueue Time
       - field: MaxEnqueueTime
         type: 0
         unit: ms
+        i18n:
+          zh-CN: 最大入队时间
+          en-US: Max Enqueue Time
       - field: MinEnqueueTime
         type: 0
         unit: ms
+        i18n:
+          zh-CN: 最小入队时间
+          en-US: Min Enqueue Time
       - field: TotalBlockedTime
         type: 0
         unit: ms
+        i18n:
+          zh-CN: 总阻塞时间
+          en-US: Total Blocked Time
       - field: AverageMessageSize
         type: 0
         unit: B
+        i18n:
+          zh-CN: 平均消息大小
+          en-US: Average Message Size
       - field: MaxMessageSize
         type: 0
         unit: B
+        i18n:
+          zh-CN: 最大消息大小
+          en-US: Max Message Size
       - field: MinMessageSize
         type: 0
         unit: B
+        i18n:
+          zh-CN: 最小消息大小
+          en-US: Min Message Size
     units:
       - MemoryLimit=B->MB
     protocol: jmx
diff --git a/manager/src/main/resources/define/app-airflow.yml 
b/manager/src/main/resources/define/app-airflow.yml
index beffb1d41..0d2c92e62 100644
--- a/manager/src/main/resources/define/app-airflow.yml
+++ b/manager/src/main/resources/define/app-airflow.yml
@@ -35,7 +35,7 @@ params:
   - field: host
     # name-param field display i18n name
     name:
-      zh-CN: 服务器Host
+      zh-CN: 服务器 Host
       en-US: Target Host
     # type-param field type(most mapping the html input type)
     type: host
@@ -76,23 +76,23 @@ params:
 metrics:
   - name: airflow_health
     i18n:
-      zh-CN: airflow健康状态
+      zh-CN: airflow 健康状态
       en-US: airflow health status
     priority: 0
     fields:
       - field: metadatabase
         i18n:
-          zh-CN: metadatabase健康情况
+          zh-CN: metadatabase 健康情况
           en-US: metadatabase status
         type: 1
       - field: scheduler
         i18n:
-          zh-CN: scheduler健康情况
+          zh-CN: scheduler 健康情况
           en-US: scheduler status
         type: 1
       - field: triggerer
         i18n:
-          zh-CN: triggerer健康情况
+          zh-CN: triggerer 健康情况
           en-US: triggerer status
         type: 1
     aliasFields:
@@ -120,13 +120,13 @@ metrics:
 
   - name: airflow_version
     i18n:
-      zh-CN: Airflow版本
+      zh-CN: Airflow 版本
       en-US: airflow version
     priority: 1
     fields:
       - field: version
         i18n:
-          zh-CN: Airflow版本
+          zh-CN: Airflow 版本
           en-US: Airflow version
         type: 1
       - field: git_version
diff --git a/manager/src/main/resources/define/app-almalinux.yml 
b/manager/src/main/resources/define/app-almalinux.yml
index 2452a389d..101e0de90 100644
--- a/manager/src/main/resources/define/app-almalinux.yml
+++ b/manager/src/main/resources/define/app-almalinux.yml
@@ -35,7 +35,7 @@ params:
   - field: host
     # name-param field display i18n name
     name:
-      zh-CN: 目标Host
+      zh-CN: 目标 Host
       en-US: Target Host
     # type-param field type(most mapping the html input type)
     type: host
@@ -444,7 +444,7 @@ metrics:
         type: 0
         unit: '%'
         i18n:
-          zh-CN: CPU占用率
+          zh-CN: CPU 占用率
           en-US: CPU Usage
       - field: mem_usage
         type: 0
@@ -491,7 +491,7 @@ metrics:
         type: 0
         unit: '%'
         i18n:
-          zh-CN: CPU占用率
+          zh-CN: CPU 占用率
           en-US: CPU Usage
       - field: command
         type: 1
diff --git a/manager/src/main/resources/define/app-doris_be.yml 
b/manager/src/main/resources/define/app-doris_be.yml
index 658b339f5..6dbbe22fc 100644
--- a/manager/src/main/resources/define/app-doris_be.yml
+++ b/manager/src/main/resources/define/app-doris_be.yml
@@ -34,7 +34,7 @@ params:
   - field: host
     # name-param field display i18n name
     name:
-      zh-CN: 目标Host
+      zh-CN: 目标 Host
       en-US: Target Host
     # type-param field type(most mapping the html input type)
     type: host
@@ -62,6 +62,9 @@ params:
     defaultValue: 6000
 metrics:
   - name: doris_be_load_channel_count
+    i18n:
+      zh-CN: 加载通道数
+      en-US: Load Channel Count
     priority: 0
     fields:
       - field: value
@@ -76,6 +79,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_memtable_flush_total
+    i18n:
+      zh-CN: Memtable 刷新总数
+      en-US: Memtable Flush Total
     priority: 0
     fields:
       - field: value
@@ -90,6 +96,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_plan_fragment_count
+    i18n:
+      zh-CN: Plan Fragment 数量
+      en-US: Plan Fragment Count
     priority: 0
     fields:
       - field: value
@@ -104,6 +113,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_process_thread_num
+    i18n:
+      zh-CN: 进程线程数
+      en-US: Process Thread Num
     priority: 0
     fields:
       - field: value
@@ -118,6 +130,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_query_scan_rows
+    i18n:
+      zh-CN: 查询扫描行数
+      en-US: Query Scan Rows
     priority: 0
     fields:
       - field: value
@@ -132,6 +147,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_result_buffer_block_count
+    i18n:
+      zh-CN: 结果缓冲区块数
+      en-US: Result Buffer Block Count
     priority: 0
     fields:
       - field: value
@@ -146,6 +164,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_send_batch_thread_pool_queue_size
+    i18n:
+      zh-CN: 批量发送线程池队列大小
+      en-US: Send Batch Thread Pool Queue Size
     priority: 0
     fields:
       - field: value
@@ -160,6 +181,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_tablet_base_max_compaction_score
+    i18n:
+      zh-CN: Tablet Base 最大压缩分数
+      en-US: Tablet Base Max Compaction Score
     priority: 0
     fields:
       - field: value
@@ -174,6 +198,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_timeout_canceled_fragment_count
+    i18n:
+      zh-CN: 超时取消的 Fragment 数量
+      en-US: Timeout Canceled Fragment Count
     priority: 0
     fields:
       - field: value
@@ -188,6 +215,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_load_rows
+    i18n:
+      zh-CN: 加载行数
+      en-US: Load Rows
     priority: 0
     fields:
       - field: value
@@ -202,6 +232,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_all_rowsets_num
+    i18n:
+      zh-CN: Rowset 总数
+      en-US: All Rowsets Num
     priority: 0
     fields:
       - field: value
@@ -216,6 +249,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_all_segments_num
+    i18n:
+      zh-CN: Segment 总数
+      en-US: All Segments Num
     priority: 0
     fields:
       - field: value
@@ -230,6 +266,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_heavy_work_max_threads
+    i18n:
+      zh-CN: 繁重工作最大线程数
+      en-US: Heavy Work Max Threads
     priority: 0
     fields:
       - field: value
@@ -244,6 +283,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_light_work_max_threads
+    i18n:
+      zh-CN: 轻量工作最大线程数
+      en-US: Light Work Max Threads
     priority: 0
     fields:
       - field: value
@@ -258,6 +300,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_heavy_work_pool_queue_size
+    i18n:
+      zh-CN: 繁重工作池队列大小
+      en-US: Heavy Work Pool Queue Size
     priority: 0
     fields:
       - field: value
@@ -272,6 +317,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_light_work_pool_queue_size
+    i18n:
+      zh-CN: 轻量工作池队列大小
+      en-US: Light Work Pool Queue Size
     priority: 0
     fields:
       - field: value
@@ -286,6 +334,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_heavy_work_active_threads
+    i18n:
+      zh-CN: 繁重工作活跃线程数
+      en-US: Heavy Work Active Threads
     priority: 0
     fields:
       - field: value
@@ -300,6 +351,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_light_work_active_threads
+    i18n:
+      zh-CN: 轻量工作活跃线程数
+      en-US: Light Work Active Threads
     priority: 0
     fields:
       - field: value
@@ -314,6 +368,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_compaction_bytes_total
+    i18n:
+      zh-CN: 压缩字节总数
+      en-US: Compaction Bytes Total
     priority: 0
     fields:
       - field: type
@@ -331,6 +388,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_disks_avail_capacity
+    i18n:
+      zh-CN: 磁盘可用容量
+      en-US: Disks Avail Capacity
     priority: 0
     fields:
       - field: path
@@ -348,6 +408,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_disks_total_capacity
+    i18n:
+      zh-CN: 磁盘总容量
+      en-US: Disks Total Capacity
     priority: 0
     fields:
       - field: path
@@ -365,6 +428,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_local_bytes_read_total
+    i18n:
+      zh-CN: 本地读取字节总数
+      en-US: Local Bytes Read Total
     priority: 0
     fields:
       - field: value
@@ -380,6 +446,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_local_bytes_written_total
+    i18n:
+      zh-CN: 本地写入字节总数
+      en-US: Local Bytes Written Total
     priority: 0
     fields:
       - field: value
@@ -395,6 +464,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_be_memory_allocated_bytes
+    i18n:
+      zh-CN: 内存分配字节
+      en-US: Memory Allocated Bytes
     priority: 0
     fields:
       - field: value
diff --git a/manager/src/main/resources/define/app-doris_fe.yml 
b/manager/src/main/resources/define/app-doris_fe.yml
index 019ab1f16..e7b4955d2 100644
--- a/manager/src/main/resources/define/app-doris_fe.yml
+++ b/manager/src/main/resources/define/app-doris_fe.yml
@@ -34,7 +34,7 @@ params:
   - field: host
     # name-param field display i18n name
     name:
-      zh-CN: 目标Host
+      zh-CN: 目标 Host
       en-US: Target Host
     # type-param field type(most mapping the html input type)
     type: host
@@ -62,6 +62,9 @@ params:
     defaultValue: 6000
 metrics:
   - name: doris_fe_connection_total
+    i18n:
+      zh-CN: 连接总数
+      en-US: Connection Total
     priority: 0
     fields:
       - field: value
@@ -81,6 +84,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_fe_edit_log_clean
+    i18n:
+      zh-CN: 编辑日志清理
+      en-US: Edit Log Clean
     priority: 0
     fields:
       - field: type
@@ -102,6 +108,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_fe_edit_log
+    i18n:
+      zh-CN: 编辑日志
+      en-US: Edit Log
     priority: 0
     fields:
       - field: type
@@ -123,6 +132,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_fe_image_clean
+    i18n:
+      zh-CN: 图片清理
+      en-US: Image Clean
     priority: 0
     fields:
       - field: type
@@ -144,6 +156,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_fe_image_write
+    i18n:
+      zh-CN: 图片写入
+      en-US: Image Write
     priority: 0
     fields:
       - field: type
@@ -165,6 +180,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_fe_query_err
+    i18n:
+      zh-CN: 查询错误
+      en-US: Query Error
     priority: 0
     fields:
       - field: value
@@ -184,6 +202,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_fe_max_journal_id
+    i18n:
+      zh-CN: 最大日志ID
+      en-US: Max Journal ID
     priority: 0
     fields:
       - field: value
@@ -203,6 +224,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_fe_max_tablet_compaction_score
+    i18n:
+      zh-CN: 最大Tablet压缩分数
+      en-US: Max Tablet Compaction Score
     priority: 0
     fields:
       - field: value
@@ -222,6 +246,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_fe_qps
+    i18n:
+      zh-CN: 每秒查询率
+      en-US: QPS
     priority: 0
     fields:
       - field: value
@@ -241,6 +268,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_fe_query_err_rate
+    i18n:
+      zh-CN: 查询错误率
+      en-US: Query Error Rate
     priority: 0
     fields:
       - field: value
@@ -262,6 +292,9 @@ metrics:
       parseType: prometheus
   
   - name: doris_fe_report_queue_size
+    i18n:
+      zh-CN: 报告队列大小
+      en-US: Report Queue Size
     priority: 0
     fields:
       - field: value
@@ -281,6 +314,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_fe_rps
+    i18n:
+      zh-CN: 每秒转数
+      en-US: RPS
     priority: 0
     fields:
       - field: value
@@ -300,6 +336,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_fe_scheduled_tablet_num
+    i18n:
+      zh-CN: 调度 Tablet 数量
+      en-US: Scheduled Tablet Num
     priority: 0
     fields:
       - field: value
@@ -319,6 +358,9 @@ metrics:
       method: GET
       parseType: prometheus
   - name: doris_fe_txn_status
+    i18n:
+      zh-CN: 事务状态
+      en-US: Transaction Status
     priority: 0
     fields:
       - field: type


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

Reply via email to