Skip to content

Commit

Permalink
[manager,webapp] split dynamic-tp metrics, scroll web when x overflow (
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsun28 authored Feb 2, 2023
1 parent f4d7c8c commit 9bca8f6
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 19 deletions.
64 changes: 45 additions & 19 deletions manager/src/main/resources/define/app/app-dynamic_tp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,61 @@ metrics:
- field: pool_name
type: 1
instance: true
- field: queue_type
type: 1
- field: core_pool_size
type: 0
- field: maximum_pool_size
type: 0
- field: queue_type
- field: fair
type: 1
- field: reject_handler_name
type: 1
- field: dynamic
type: 1
aliasFields:
- poolName
- corePoolSize
- maximumPoolSize
- queueType
- fair
- rejectHandlerName
- dynamic
calculates:
- pool_name=poolName
- core_pool_size=corePoolSize
- maximum_pool_size=maximumPoolSize
- queue_type=queueType
- fair=fair
- reject_handler_name=rejectHandlerName
- dynamic=dynamic
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: '$.*'

- name: thread_pool_running
priority: 1
fields:
- field: pool_name
type: 1
instance: true
- field: queue_capacity
type: 0
unit: MB
- field: queue_size
type: 0
- field: fair
type: 1
- field: queue_remaining_capacity
type: 0
unit: MB
Expand All @@ -66,22 +108,14 @@ metrics:
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
Expand All @@ -90,18 +124,12 @@ metrics:
- 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
Expand All @@ -110,8 +138,6 @@ metrics:
- 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:
Expand Down
7 changes: 7 additions & 0 deletions web-app/src/styles/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,10 @@
justify-content: center;
float: none;
}

.ant-tabs-content-holder {
flex: auto;
min-width: 0;
min-height: 0;
overflow-x: auto;
}

0 comments on commit 9bca8f6

Please sign in to comment.