hertzbeat icon indicating copy to clipboard operation
hertzbeat copied to clipboard

[Task] Monitoring Template Yml Metrics I18n | 监控模版指标名称任务认领

Open tomsun28 opened this issue 2 years ago • 38 comments

Description

Monitoring Template Yml Metrics I18n Task

监控模版指标国际化任务认领

Hi guys, in the past, the Metrics Name of HertzBeat monitoring details could only display the English field, and could not support the configuration to display international name aliases such as English and Chinese. We are very glad that this version supports it. We have configured the internationalized name of the metrics into the monitoring template YML of each monitoring type. Because there are too many monitoring templates and the translation of the metrics name of each monitoring type needs to be considered, so I ask for your help here. Interested partners are welcome to cooperate and contribute to the internationalization of the monitoring template metrics translation. Thanks!

小伙伴们大家好,之前HertzBeat的监控详情的指标名称只能展示英文指标field字段,无法支持配置展示英文中文等国际化名称别名。很高兴这个版本我们对其支持了,指标的国际化名称我们将其配置到了各个监控类型的监控模版YML中。因为监控模版实在太多且每个监控类型的指标名称翻译都需要考量,所以在这里请求大家的帮助,欢迎感兴趣的小伙伴协作贡献大家一起把监控模版指标翻译国际化做好。谢谢,爱心💗!

Demo before:

image

After Metrics I18n:

image

Task List

Just comment on the corresponding task under this issue, and one PR corresponds to one monitoring template YML. as follows:

领取方式,在本 issues 下评论对应任务即可,一个PR对应一个监控模版YML。如下:

  • [x] Metrics I18n https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-zookeeper.yml
- [x] Metrics I18n https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-zookeeper.yml

Add i18n translation content under the metrics group and fields, for example: i18n.zh-CN: CPU 信息 i18n.en-US: CPU Info, English and Chinese are required, please pay attention to format alignment.

在指标组和指标下面添加i18n翻译内容, 例如:i18n.zh-CN: CPU 信息 i18n.en-US: CPU Info,需支持英文和中文,请注意格式对齐。

Example:

  - name: cpu
    i18n:
      zh-CN: CPU 信息
      en-US: CPU Info
    priority: 1
    fields:
      - field: info
        type: 1
        i18n:
          zh-CN: 型号
          en-US: Info
      - field: cores
        type: 0
        i18n:
          zh-CN: 核数
          en-US: Cores
      - field: interrupt
        type: 0
        i18n:
          zh-CN: 中断数
          en-US: Interrupt
      - field: load
        type: 1
        i18n:
          zh-CN: 负载
          en-US: Load
      - field: context_switch
        type: 0
        i18n:
          zh-CN: 上下文切换
          en-US: Context Switch
      - field: usage
        type: 0
        unit: '%'
        i18n:
          zh-CN: 使用率
          en-US: Usage

Task List

  • [x] [activemq] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-activemq.yml)
  • [x] [airflow] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-airflow.yml)
  • [x] [api] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-api.yml)
  • [x] [api_code] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-api_code.yml)
  • [x] [cisco_switch] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-cisco_switch.yml)
  • [x] #1639
  • [ ] [dm] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-dm.yml)
  • [x] [docker] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-docker.yml)
  • [ ] [doris_be] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_be.yml)
  • [ ] [doris_fe] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_fe.yml)
  • [x] [dynamic_tp] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-dynamic_tp.yml)
  • [x] #1570
  • [x] [flink] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-flink.yml)
  • [x] [ftp] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-ftp.yml)
  • [ ] [fullsite] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-fullsite.yml)
  • [x] [h3c_switch] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-h3c_switch.yml)
  • [x] [hadoop] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-hadoop.yml)
  • [ ] [hertzbeat] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-hertzbeat.yml)
  • [ ] [hertzbeat_token] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-hertzbeat_token.yml)
  • [x] [hpe_switch] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-hpe_switch.yml)
  • [x] [huawei_switch] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-huawei_switch.yml)
  • [ ] [influxdb_promql] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-influxdb_promql.yml)
  • [x] [iotdb] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-iotdb.yml)
  • [x] [jetty] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-jetty.yml)
  • [x] [jvm] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-jvm.yml)
  • [x] [kafka] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-kafka.yml)
  • [x] [kafka_promql] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-kafka_promql.yml)
  • [x] [kubernetes] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-kubernetes.yml)
  • [x] [mariadb] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-mariadb.yml)
  • [x] [mongodb] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-mongodb.yml)
  • [x] [mysql] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-mysql.yml)
  • [ ] [nacos] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-nacos.yml)
  • [ ] [opengauss] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-opengauss.yml)
  • [ ] [oracle] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-oracle.yml)
  • [x] [ping] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-ping.yml)
  • [x] [port] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-port.yml)
  • [ ] [postgresql] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-postgresql.yml)
  • [x] [rabbitmq] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-rabbitmq.yml)
  • [x] [redis] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-redis.yml)
  • [ ] [redis_cluster] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-redis_cluster.yml)
  • [ ] [redis_sentinel] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-redis_sentinel.yml)
  • [x] [rocketmq] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-rocketmq.yml)
  • [ ] [shenyu] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-shenyu.yml)
  • [x] [spark] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-spark.yml)
  • [x] [springboot2] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-springboot2.yml)
  • [x] [springboot3] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-springboot3.yml)
  • [ ] [sqlserver] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-sqlserver.yml)
  • [x] [ssl_cert] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-ssl_cert.yml)
  • [ ] [tidb] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-tidb.yml)
  • [ ] [tomcat] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-tomcat.yml)
  • [x] [tplink_switch] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-tplink_switch.yml)
  • [x] [website] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-website.yml)
  • [ ] [windows] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-windows.yml)
  • [x] [zookeeper] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-zookeeper.yml)

tomsun28 avatar Aug 30 '23 03:08 tomsun28

请问哪个版本支持了啊 ?我现在使用的最新的1.40安装版本(Windows),还不支持,替换define目录下的yml文件,服务直接崩溃了。 May I ask which version supports it? The latest 1.40 version I am using now does not support it. If the yml file in the define directory is replaced, the service directly crashes.

jcmyt avatar Sep 01 '23 09:09 jcmyt

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


May I ask which version supports it? The latest 1.40 version I am using now does not support it. If the yml file in the define directory is replaced, the service directly crashes.

hertzbeat avatar Sep 01 '23 09:09 hertzbeat

请问哪个版本支持了啊 ?我现在使用的最新的1.40安装版本(Windows),还不支持,替换define目录下的yml文件,服务直接崩溃了。 May I ask which version supports it? The latest 1.40 version I am using now does not support it. If the yml file in the define directory is replaced, the service directly crashes.

hi你好,国际化目前只能是在master分支代码本地启动支持,我们尽快发布支持新版本

tomsun28 avatar Sep 01 '23 09:09 tomsun28

  • [x] [ping] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-ping.yml)

qyaaaa avatar Sep 03 '23 03:09 qyaaaa

  • [x] [api] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-api.yml)

novohit avatar Sep 08 '23 13:09 novohit

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


[api] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-api.yml)

hertzbeat avatar Sep 08 '23 13:09 hertzbeat

i want to help

lynx009 avatar Oct 17 '23 12:10 lynx009

i want to help

@a-little-fool welcome. Just comment on the corresponding task under this issue, and one PR corresponds to one monitoring template YML.

tomsun28 avatar Oct 17 '23 13:10 tomsun28

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


[mysql](https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-mysql.yml)

hertzbeat avatar Oct 17 '23 14:10 hertzbeat

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


[mysql](https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-mysql.yml)

hertzbeat avatar Oct 17 '23 14:10 hertzbeat

[mysql](https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-mysql.yml)

lynx009 avatar Oct 17 '23 14:10 lynx009

[springboot2] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-springboot2.yml)

idongliming avatar Nov 17 '23 15:11 idongliming

[mongodb] ( https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-mongodb.yml )

lynx009 avatar Nov 27 '23 07:11 lynx009

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


[mongodb] ( https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-mongodb.yml )

hertzbeat avatar Nov 27 '23 07:11 hertzbeat

  • [x] [jvm] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-jvm.yml) #1376

Calvin979 avatar Dec 02 '23 11:12 Calvin979

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


  • [x] [jvm] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-jvm.yml) #1376

hertzbeat avatar Dec 02 '23 11:12 hertzbeat

  • [x] [redis] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-redis.yml) #1390

Calvin979 avatar Dec 08 '23 14:12 Calvin979

[rabbitmq] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-rabbitmq.yml)

ZY945 avatar Dec 21 '23 09:12 ZY945

[springboot3] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-springboot3.yml)

liyin avatar Dec 24 '23 08:12 liyin

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


[springboot3] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-springboot3.yml)

hertzbeat avatar Dec 24 '23 08:12 hertzbeat

[docker] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-docker.yml)

liyin avatar Dec 25 '23 04:12 liyin

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


[docker] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-docker.yml)

hertzbeat avatar Dec 25 '23 04:12 hertzbeat

  • [x] [docker] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-docker.yml)

tslj1024 avatar Jan 01 '24 08:01 tslj1024

[redis] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-redis.yml)

oyiyou avatar Jan 12 '24 03:01 oyiyou

  • [x] Metrics I18n [flink] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-flink.yml)

cuipiheqiuqiu avatar Feb 27 '24 13:02 cuipiheqiuqiu

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


  • [x] Metrics I18n [flink] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-flink.yml)

hertzbeat avatar Feb 27 '24 13:02 hertzbeat

  • [x] Metrics I18 [kubernetes] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-kubernetes.yml)

cuipiheqiuqiu avatar Feb 27 '24 14:02 cuipiheqiuqiu

  • [x] Metrics I18n [zookeeper] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-zookeeper.yml)

cuipiheqiuqiu avatar Feb 27 '24 14:02 cuipiheqiuqiu

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


  • [x] Metrics I18n [zookeeper] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-zookeeper.yml)

hertzbeat avatar Feb 27 '24 14:02 hertzbeat

[dynamic_tp] (https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/define/app-dynamic_tp.yml)

ZY945 avatar Mar 14 '24 05:03 ZY945