Skip to content

Commit 10cb2d8

Browse files
committed
feat(redis): redis-slowlog-显示优化-message按右对齐 TencentBlueKing#16168
1 parent 2098c4c commit 10cb2d8

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

dbm-ui/backend/bk_dataview/dashboards/json/redis-slowlog.json

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@
380380
"type": "bk_log_datasource",
381381
"uid": "${DS_日志平台}"
382382
},
383-
"description": "慢查询列表",
383+
"description": "最多显示1000行,如果显示全,建议缩小时间范围。",
384384
"fieldConfig": {
385385
"defaults": {
386386
"color": {
@@ -400,10 +400,6 @@
400400
{
401401
"color": "green",
402402
"value": null
403-
},
404-
{
405-
"color": "red",
406-
"value": 80
407403
}
408404
]
409405
}
@@ -424,18 +420,6 @@
424420
}
425421
]
426422
},
427-
{
428-
"matcher": {
429-
"id": "byName",
430-
"options": "duration.us"
431-
},
432-
"properties": [
433-
{
434-
"id": "custom.width",
435-
"value": 92
436-
}
437-
]
438-
},
439423
{
440424
"matcher": {
441425
"id": "byName",
@@ -523,6 +507,24 @@
523507
"value": 99
524508
}
525509
]
510+
},
511+
{
512+
"matcher": {
513+
"id": "byName",
514+
"options": "message"
515+
},
516+
"properties": [
517+
{
518+
"id": "custom.cellOptions",
519+
"value": {
520+
"type": "auto"
521+
}
522+
},
523+
{
524+
"id": "custom.align",
525+
"value": "right"
526+
}
527+
]
526528
}
527529
]
528530
},
@@ -537,9 +539,10 @@
537539
"cellHeight": "sm",
538540
"footer": {
539541
"countRows": false,
540-
"fields": "",
542+
"enablePagination": true,
543+
"fields": [],
541544
"reducer": [
542-
"sum"
545+
"allValues"
543546
],
544547
"show": false
545548
},
@@ -997,7 +1000,7 @@
9971000
"timepicker": {},
9981001
"timezone": "default",
9991002
"title": "Redis慢查询",
1000-
"version": 46,
1003+
"version": 49,
10011004
"weekStart": "",
10021005
"__inputs": [
10031006
{

0 commit comments

Comments
 (0)