forked from apache/hertzbeat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp-dynamic_tp.yml
134 lines (133 loc) · 3.73 KB
/
app-dynamic_tp.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# 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.
category: mid
app: dynamic_tp
name:
zh-CN: DynamicTp线程池
en-US: DynamicTp Pool
# 参数映射map. type是参数类型: 0-number数字, 1-string明文字符串, 2-secret加密字符串
# 强制固定必须参数 - host
configmap:
- key: host
type: 1
- key: port
type: 0
- key: ssl
type: 1
- key: base_path
type: 1
metrics:
- name: thread_pool
priority: 0
fields:
- field: pool_name
type: 1
instance: true
- field: core_pool_size
type: 0
- field: maximum_pool_size
type: 0
- field: queue_type
type: 1
- field: queue_capacity
type: 0
unit: MB
- field: queue_size
type: 0
- field: fair
type: 1
- field: queue_remaining_capacity
type: 0
unit: MB
- field: active_count
type: 0
- field: task_count
type: 0
- field: completed_task_count
type: 0
- field: largest_pool_size
type: 0
- field: pool_size
type: 0
- field: wait_task_count
type: 0
- field: reject_count
type: 0
- field: reject_handler_name
type: 1
- field: dynamic
type: 1
- field: run_timeout_count
type: 0
- field: queue_timeout_count
type: 0
aliasFields:
- poolName
- corePoolSize
- maximumPoolSize
- queueType
- queueCapacity
- queueSize
- fair
- queueRemainingCapacity
- activeCount
- taskCount
- completedTaskCount
- largestPoolSize
- poolSize
- waitTaskCount
- rejectCount
- rejectHandlerName
- dynamic
- runTimeoutCount
- queueTimeoutCount
calculates:
- pool_name=poolName
- core_pool_size=corePoolSize
- maximum_pool_size=maximumPoolSize
- queue_type=queueType
- queue_capacity=queueCapacity
- queue_size=queueSize
- fair=fair
- queue_remaining_capacity=queueRemainingCapacity
- active_count=activeCount
- task_count=taskCount
- completed_task_count=completedTaskCount
- largest_pool_size=largestPoolSize
- pool_size=poolSize
- wait_task_count=waitTaskCount
- reject_count=rejectCount
- reject_handler_name=rejectHandlerName
- dynamic=dynamic
- run_timeout_count=runTimeoutCount
- queue_timeout_count=queueTimeoutCount
units:
- queue_capacity=B->MB
- queue_remaining_capacity=B->MB
protocol: http
http:
# 主机host: ipv4 ipv6 域名
host: ^_^host^_^
# 端口
port: ^_^port^_^
# url请求接口路径
url: ^_^base_path^_^/dynamic-tp
# 请求方式 GET POST PUT DELETE PATCH
method: GET
# 是否启用ssl/tls,即是http还是https,默认false
ssl: ^_^ssl^_^
# 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-api可用性指标监控
parseType: jsonPath
parseScript: '$.*'