forked from apache/hertzbeat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp-nacos.yml
59 lines (59 loc) · 1.44 KB
/
app-nacos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
category: mid
app: nacos
name:
zh-CN: Nacos注册配置中心
en-US: Nacos Server
configmap:
- key: host
type: 1
- key: port
type: 0
metrics:
- name: cpu
priority: 0
fields:
- field: system_cpu_usage
type: 0
unit: '%'
aliasFields:
- value
calculates:
- system_cpu_usage=value * 100
protocol: http
http:
# 主机host: ipv4 ipv6 域名
host: ^_^host^_^
# 端口
port: ^_^port^_^
# url请求接口路径
url: /nacos/actuator/metrics/system.cpu.usage
# 请求方式 GET POST PUT DELETE PATCH
method: GET
# 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-api可用性指标监控
parseType: jsonPath
parseScript: $.measurements[*]
- name: memory
priority: 0
fields:
- field: jvm_memory_used
type: 0
unit: 'MB'
aliasFields:
- value
calculates:
- jvm_memory_used=value
units:
- jvm_memory_used=B->MB
protocol: http
http:
# 主机host: ipv4 ipv6 域名
host: ^_^host^_^
# 端口
port: ^_^port^_^
# url请求接口路径
url: /nacos/actuator/metrics/jvm.memory.used
# 请求方式 GET POST PUT DELETE PATCH
method: GET
# 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-api可用性指标监控
parseType: jsonPath
parseScript: $.measurements[*]