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

shown 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 27d66a11c [type:feature] add greptimedb template (#2551)
27d66a11c is described below

commit 27d66a11c1f62e1e1fef9f709fdb9bfc86745c32
Author: aias00 <[email protected]>
AuthorDate: Sun Aug 18 16:36:00 2024 +0800

    [type:feature] add greptimedb template (#2551)
    
    Co-authored-by: YuLuo <[email protected]>
---
 manager/src/main/resources/define/app-greptime.yml | 695 +++++++++++++++++++++
 1 file changed, 695 insertions(+)

diff --git a/manager/src/main/resources/define/app-greptime.yml 
b/manager/src/main/resources/define/app-greptime.yml
new file mode 100644
index 000000000..1671e872e
--- /dev/null
+++ b/manager/src/main/resources/define/app-greptime.yml
@@ -0,0 +1,695 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# The monitoring type category:service-application service monitoring 
db-database monitoring custom-custom monitoring os-operating system monitoring
+# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 
mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等
+category: bigdata
+# The monitoring type eg: linux windows tomcat mysql aws...
+# 监控类型 eg: linux windows tomcat mysql aws...
+app: greptimeDB
+# The monitoring i18n name
+# 监控类型国际化名称
+name:
+  zh-CN: GreptimeDB
+  en-US: GreptimeDB
+# The description and help of this monitoring type
+# 监控类型的帮助描述信息
+help:
+  zh-CN: HertzBeat 对 GreptimeDB 时序数据库进行监控。<br><span 
class='help_module_span'><a class='help_module_content' 
https://docs.greptime.com/user-guide/operations/monitoring'>点击查看开启步骤</a>。</span>
+  en-US: HertzBeat monitors the GreptimeDB time series database. <br><span 
class='help_module_span'><a class='help_module_content' 
https://docs.greptime.com/user-guide/operations/monitoring'>Click to view the 
activation steps</a>. </span>
+  zh-TW: HertzBeat 對 GreptimeDB 時序資料庫進行監控。<br><span 
class='help_module_span'><a class='help_module_content' 
https://docs.greptime.com/user-guide/operations/monitoring'>點擊查看開啓步驟</a>。</span>
+helpLink:
+  zh-CN: https://hertzbeat.com/zh-cn/docs/help/greptimedb
+  en-US: https://hertzbeat.com/docs/help/greptimedb
+# 监控所需输入参数定义(根据定义渲染页面UI)
+# Input params define for monitoring(render web ui by the definition)
+params:
+  # field-param field key
+  # field-变量字段标识符
+  - field: host
+    # name-param field display i18n name
+    # name-参数字段显示名称
+    name:
+      zh-CN: 目标Host
+      en-US: Target Host
+    # type-param field type(most mapping the html input type)
+    # type-字段类型,样式(大部分映射input标签type属性)
+    type: host
+    # required-true or false
+    # required-是否是必输项 true-必填 false-可选
+    required: true
+  - field: port
+    name:
+      zh-CN: 端口
+      en-US: Port
+    # type-param field type(most mapping the html input type)
+    # type-字段类型,样式(大部分映射input标签type属性)
+    type: number
+    # when type is number, range is required
+    # 当type为number时,用range表示范围
+    range: '[0,65535]'
+    # default value
+    defaultValue: 4000
+    required: true
+  - field: timeout
+    name:
+      zh-CN: 查询超时时间
+      en-US: Query Timeout
+    type: number
+    required: false
+    # hide param-true or false
+    # 是否隐藏字段 true or false
+    hide: true
+    defaultValue: 6000
+
+# collect metrics config list
+# 采集指标配置列表
+metrics:
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: greptime_app_version
+    i18n:
+      zh-CN: greptime 应用版本
+      en-US: greptime_app_version
+    priority: 0
+    fields:
+      - field: short_version
+        i18n:
+          zh-CN: 版本
+          en-US: version
+        type: 1
+        label: true
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+      
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: greptime_catalog_schema_count
+    i18n:
+      zh-CN: 目录 模式 数量
+      en-US: greptime_catalog_schema_count
+    priority: 0
+    fields:
+      - field: value
+        i18n:
+          zh-CN: 数量
+          en-US: count
+        type: 1
+    calculates:
+      - name=.name
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+      
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: greptime_meta_cache_container_cache_get
+    i18n:
+      zh-CN: 缓存容器缓存获取
+      en-US: greptime_meta_cache_container_cache_get
+    priority: 0
+    fields:
+      - field: name
+        i18n:
+          zh-CN: 名称
+          en-US: name
+        type: 1
+        label: true
+      - field: value
+        i18n:
+          zh-CN: 指标值
+          en-US: value
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+      
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: greptime_meta_cache_container_cache_miss
+    i18n:
+      zh-CN: 缓存容器缓存未命中
+      en-US: greptime_meta_cache_container_cache_miss
+    priority: 0
+    fields:
+      - field: name
+        i18n:
+          zh-CN: 名称
+          en-US: name
+        type: 1
+        label: true
+      - field: value
+        i18n:
+          zh-CN: 指标值
+          en-US: value
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+      
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: greptime_mito_region_count
+    i18n:
+      zh-CN: mito 引擎区域数量
+      en-US: greptime_mito_region_count
+    priority: 0
+    fields:
+      - field: worker
+        i18n:
+          zh-CN: 工作线程
+          en-US: worker
+        type: 1
+        label: true
+      - field: value
+        i18n:
+          zh-CN: 数量
+          en-US: count
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+      
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: greptime_mito_write_stall_total
+    i18n:
+      zh-CN: mito 引擎写入延迟总数
+      en-US: greptime_mito_write_stall_total
+    priority: 0
+    fields:
+      - field: worker
+        i18n:
+          zh-CN: 工作线程
+          en-US: worker
+        type: 1
+        label: true
+      - field: value
+        i18n:
+          zh-CN: 数量
+          en-US: total
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: greptime_meta_create_catalog_counter
+    i18n:
+      zh-CN: 创建目录计数器
+      en-US: greptime_meta_create_catalog_counter
+    priority: 0
+    fields:
+      - field: value
+        i18n:
+          zh-CN: 指标值
+          en-US: value
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: greptime_runtime_threads_alive
+    i18n:
+      zh-CN: 运行时线程存活
+      en-US: greptime_runtime_threads_alive
+    priority: 0
+    fields:
+      - field: thread_name
+        i18n:
+          zh-CN: 线程名称
+          en-US: thread_name
+        type: 1
+      - field: value
+        i18n:
+          zh-CN: value
+          en-US: value
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: greptime_runtime_threads_idle
+    i18n:
+      zh-CN: 运行时线程空闲
+      en-US: greptime_runtime_threads_idle
+    priority: 0
+    fields:
+      - field: thread_name
+        i18n:
+          zh-CN: 线程名称
+          en-US: thread_name
+        type: 1
+      - field: value
+        i18n:
+          zh-CN: value
+          en-US: value
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: greptime_servers_http_requests_total
+    i18n:
+      zh-CN: greptime 服务 HTTP 请求总数
+      en-US: greptime_servers_http_requests_total
+    priority: 0
+    fields:
+      - field: code
+        i18n:
+          zh-CN: code
+          en-US: code
+        type: 1
+      - field: method
+        i18n:
+          zh-CN: method
+          en-US: method
+        type: 1
+      - field: path
+        i18n:
+          zh-CN: path
+          en-US: path
+        type: 1
+      - field: value
+        i18n:
+          zh-CN: value
+          en-US: value
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: greptime_servers_mysql_connection_count
+    i18n:
+      zh-CN: greptime 服务 MySQL 连接数
+      en-US: greptime_servers_mysql_connection_count
+    priority: 0
+    fields:
+      - field: value
+        i18n:
+          zh-CN: value
+          en-US: value
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: greptime_servers_postgres_connection_count
+    i18n:
+      zh-CN: greptime 服务 Postgres 连接数
+      en-US: greptime_servers_postgres_connection_count
+    priority: 0
+    fields:
+      - field: value
+        i18n:
+          zh-CN: value
+          en-US: value
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: process_cpu_seconds_total
+    i18n:
+      zh-CN: 进程 CPU 时间总数
+      en-US: process_cpu_seconds_total
+    priority: 0
+    fields:
+      - field: value
+        i18n:
+          zh-CN: value
+          en-US: value
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: process_max_fds
+    i18n:
+      zh-CN: 进程最大文件描述符
+      en-US: process_max_fds
+    priority: 0
+    fields:
+      - field: value
+        i18n:
+          zh-CN: value
+          en-US: value
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: process_open_fds
+    i18n:
+      zh-CN: 进程打开文件描述符
+      en-US: process_open_fds
+    priority: 0
+    fields:
+      - field: value
+        i18n:
+          zh-CN: value
+          en-US: value
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: process_resident_memory_bytes
+    i18n:
+      zh-CN: 进程常驻内存字节
+      en-US: process_resident_memory_bytes
+    priority: 0
+    fields:
+      - field: value
+        i18n:
+          zh-CN: value
+          en-US: value
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: process_start_time_seconds
+    i18n:
+      zh-CN: 进程启动时间(秒)
+      en-US: process_start_time_seconds
+    priority: 0
+    fields:
+      - field: value
+        i18n:
+          zh-CN: value
+          en-US: value
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: process_threads
+    i18n:
+      zh-CN: 进程线程
+      en-US: process_threads
+    priority: 0
+    fields:
+      - field: value
+        i18n:
+          zh-CN: value
+          en-US: value
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: process_virtual_memory_bytes
+    i18n:
+      zh-CN: 进程虚拟内存字节
+      en-US: process_virtual_memory_bytes
+    priority: 0
+    fields:
+      - field: value
+        i18n:
+          zh-CN: value
+          en-US: value
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: raft_engine_log_entry_count
+    i18n:
+      zh-CN: raft 引擎日志条目数量
+      en-US: raft_engine_log_entry_count
+    priority: 0
+    fields:
+      - field: type
+        i18n:
+          zh-CN: 类型
+          en-US: type
+        type: 1
+      - field: value
+        i18n:
+          zh-CN: 数量
+          en-US: count
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: raft_engine_log_file_count
+    i18n:
+      zh-CN: raft 引擎日志文件数量
+      en-US: raft_engine_log_file_count
+    priority: 0
+    fields:
+      - field: type
+        i18n:
+          zh-CN: 类型
+          en-US: type
+        type: 1
+      - field: value
+        i18n:
+          zh-CN: 数量
+          en-US: count
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: raft_engine_memory_usage
+    i18n:
+      zh-CN: raft 引擎内存占用
+      en-US: raft_engine_memory_usage
+    priority: 0
+    fields:
+      - field: value
+        i18n:
+          zh-CN: 占用
+          en-US: total
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: raft_engine_recycled_file_count
+    i18n:
+      zh-CN: raft 引擎回收文件数量
+      en-US: raft_engine_recycled_file_count
+    priority: 0
+    fields:
+      - field: type
+        i18n:
+          zh-CN: 类型
+          en-US: type
+        type: 1
+      - field: value
+        i18n:
+          zh-CN: 数量
+          en-US: count
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: sys_jemalloc_allocated
+    i18n:
+      zh-CN: jemalloc 分配
+      en-US: sys_jemalloc_allocated
+    priority: 0
+    fields:
+      - field: value
+        i18n:
+          zh-CN: 数量
+          en-US: value
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus
+
+  # metrics - cluster_node_status
+  # 监控指标 - cluster_node_status
+  - name: sys_jemalloc_resident
+    i18n:
+      zh-CN: jemalloc 常驻
+      en-US: sys_jemalloc_resident
+    priority: 0
+    fields:
+      - field: value
+        i18n:
+          zh-CN: 数量
+          en-US: value
+        type: 1
+    protocol: http
+    http:
+      host: ^_^host^_^
+      port: ^_^port^_^
+      url: '/metrics'
+      timeout: ^_^timeout^_^
+      method: GET
+      parseType: prometheus


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

Reply via email to