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 86c7c2dad [Improve]add presto monitor metric (#2516)
86c7c2dad is described below
commit 86c7c2dadf152bab386440ef4dca68715f751759
Author: Jast <[email protected]>
AuthorDate: Mon Aug 12 23:26:32 2024 +0800
[Improve]add presto monitor metric (#2516)
Co-authored-by: tomsun28 <[email protected]>
---
home/docs/help/prestodb.md | 14 ++++++
.../current/help/prestodb.md | 13 +++++
manager/src/main/resources/define/app-prestodb.yml | 58 ++++++++++++++++++++++
3 files changed, 85 insertions(+)
diff --git a/home/docs/help/prestodb.md b/home/docs/help/prestodb.md
index 23deb48cb..8c19e178e 100644
--- a/home/docs/help/prestodb.md
+++ b/home/docs/help/prestodb.md
@@ -33,6 +33,20 @@ keywords: [ open source monitoring system, open source
database monitoring, pres
| runningDrivers | None | Running Drivers|
| runningTasks | None | Running Tasks |
+### Metrics Collection: Node Information
+
+| Metric Name | Unit | Metric Description
|
+|-------------------|------|----------------------------------------------------|
+| `uri` | None | Node link
|
+| `recentRequests` | None | Number of requests in the recent period
|
+| `recentFailures` | None | Number of failed requests in the recent period
|
+| `recentSuccesses` | None | Number of successful requests in the recent
period |
+| `lastRequestTime` | None | Time of the most recent request
|
+| `lastResponseTime`| None | Time of the most recent response
|
+| `age` | None | Duration of operation
|
+| `recentFailureRatio` | None | Failure rate in the recent period
|
+
+
#### Metric Set: Node Status
diff --git
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/prestodb.md
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/prestodb.md
index 1f2a7ac38..31ed6d646 100644
--- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/prestodb.md
+++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/prestodb.md
@@ -33,6 +33,19 @@ keywords: [ 开源监控系统, 开源数据库监控, Presto数据库监控 ]
| runningDrivers | 无 | 运行中的驱动数 |
| runningTasks | 无 | 运行中的任务数 |
+#### 指标集合:节点信息
+
+| 指标名称 | 指标单位 | 指标帮助描述 |
+|------|------| ---------------------------------- |
+| uri | 无 | 节点链接 |
+| recentRequests | 无 | 最近一段时间内的请求数量 |
+| recentFailures | 无 | 最近一段时间内的失败请求数量 |
+| recentSuccesses | 无 | 最近一段时间内的成功请求数量 |
+| lastRequestTime | 无 | 最近一次请求的时间 |
+| lastResponseTime | 无 | 最近一次响应的时间 |
+| age | 无 | 持续时间 |
+| recentFailureRatio | 无 | 最近一段时间内的失败 |
+
#### 指标集合:节点状态
diff --git a/manager/src/main/resources/define/app-prestodb.yml
b/manager/src/main/resources/define/app-prestodb.yml
index 94c1fdd27..7f509ddb8 100644
--- a/manager/src/main/resources/define/app-prestodb.yml
+++ b/manager/src/main/resources/define/app-prestodb.yml
@@ -105,6 +105,64 @@ metrics:
parseType: jsonPath
parseScript: '$'
+ - name: node
+ i18n:
+ zh-CN: 节点信息
+ en-US: Node Info
+ priority: 0
+ fields:
+ - field: uri
+ type: 1
+ i18n:
+ zh-CN: 节点链接
+ en-US: Node Uri
+ - field: recentRequests
+ type: 0
+ i18n:
+ zh-CN: 最近一段时间内的请求数量
+ en-US: Recent Requests
+ - field: recentFailures
+ type: 0
+ i18n:
+ zh-CN: 最近一段时间内的失败请求数量
+ en-US: Recent Failures
+ - field: recentSuccesses
+ type: 0
+ i18n:
+ zh-CN: 最近一段时间内的成功请求数量
+ en-US: Recent Successes
+ - field: lastRequestTime
+ type: 1
+ i18n:
+ zh-CN: 最近一次请求的时间
+ en-US: Last Request Time
+ - field: lastResponseTime
+ type: 1
+ i18n:
+ zh-CN: 最近一次响应的时间
+ en-US: Last Response Time
+ - field: age
+ type: 0
+ i18n:
+ zh-CN: 持续时间
+ en-US: Age
+ - field: recentFailureRatio
+ type: 0
+ i18n:
+ zh-CN: 最近一段时间内的失败
+ en-US: Recent Failure Ratio
+
+ protocol: http
+ http:
+ host: ^_^host^_^
+ port: ^_^port^_^
+ url: /v1/node
+ timeout: ^_^timeout^_^
+ method: GET
+ ssl: ^_^ssl^_^
+ parseType: jsonPath
+ parseScript: '$[*]'
+
- name: status
i18n:
zh-CN: 节点状态
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]