forked from apache/hertzbeat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app-nacos.yml
108 lines (104 loc) · 2.2 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
category: mid
app: nacos
name:
zh-CN: Nacos注册配置中心
en-US: Nacos Server
params:
- field: host
name:
zh-CN: 服务器Host
en-US: Host
type: host
required: true
- field: port
name:
zh-CN: Nacos服务端口
en-US: Nacos Port
type: number
range: '[0,65535]'
required: true
defaultValue: 8848
metrics:
- name: system
priority: 0
fields:
- field: system_cpu_usage
type: 0
unit: '%'
- field: system_average_load
type: 0
- field: system_memory_usage
type: 0
unit: '%'
aliasFields:
- cpu
- load
- mem
calculates:
- system_cpu_usage=cpu * 100
- system_average_load=load
- system_memory_usage=mem * 100
protocol: http
http:
host: ^_^host^_^
port: ^_^port^_^
url: /nacos/v2/ns/operator/metrics?onlyStatus=false
method: GET
parseType: jsonPath
parseScript: $.data
- name: jvm_gc_count
priority: 1
fields:
- field: total_gc_count
type: 0
aliasFields:
- value
calculates:
- total_gc_count=value
protocol: http
http:
host: ^_^host^_^
port: ^_^port^_^
url: /nacos/actuator/metrics/jvm.gc.pause
method: GET
parseType: jsonPath
parseScript: $.measurements[0]
- name: jvm_gc_time
priority: 1
fields:
- field: total_gc_time
type: 0
unit: 's'
aliasFields:
- value
calculates:
- total_gc_time=value
protocol: http
http:
host: ^_^host^_^
port: ^_^port^_^
url: /nacos/actuator/metrics/jvm.gc.pause
method: GET
parseType: jsonPath
parseScript: $.measurements[1]
- name: nacos
priority: 1
fields:
- field: service_count
type: 0
- field: client_count
type: 0
aliasFields:
- serviceCount
- clientCount
calculates:
- service_count=serviceCount
- client_count=clientCount
protocol: http
http:
host: ^_^host^_^
port: ^_^port^_^
url: /nacos/v2/ns/operator/metrics?onlyStatus=false
method: GET
parseType: jsonPath
parseScript: $.data