Skip to content

Commit

Permalink
[Improve]add presto monitor metric (#2516)
Browse files Browse the repository at this point in the history
Co-authored-by: tomsun28 <[email protected]>
  • Loading branch information
zhangshenghang and tomsun28 authored Aug 12, 2024
1 parent ddfa60e commit 86c7c2d
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
14 changes: 14 additions & 0 deletions home/docs/help/prestodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ keywords: [ 开源监控系统, 开源数据库监控, Presto数据库监控 ]
| runningDrivers || 运行中的驱动数 |
| runningTasks || 运行中的任务数 |

#### 指标集合:节点信息

| 指标名称 | 指标单位 | 指标帮助描述 |
|------|------| ---------------------------------- |
| uri || 节点链接 |
| recentRequests || 最近一段时间内的请求数量 |
| recentFailures || 最近一段时间内的失败请求数量 |
| recentSuccesses || 最近一段时间内的成功请求数量 |
| lastRequestTime || 最近一次请求的时间 |
| lastResponseTime || 最近一次响应的时间 |
| age || 持续时间 |
| recentFailureRatio || 最近一段时间内的失败 |


#### 指标集合:节点状态

Expand Down
58 changes: 58 additions & 0 deletions manager/src/main/resources/define/app-prestodb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: 节点状态
Expand Down

0 comments on commit 86c7c2d

Please sign in to comment.