Compare commits

...

2 Commits

Author SHA1 Message Date
tiny-craft 75abd66c46 fix: try unescape client name in slow log
doc: update screenshots
2023-11-03 10:50:51 +08:00
tiny-craft dc39b5ea3e doc: update README and screenshots 2023-11-03 10:16:40 +08:00
7 changed files with 12 additions and 3 deletions

View File

@ -24,15 +24,17 @@
* Better connection management: supports SSH Tunnel/SSL/Sentinel Mode/Cluster Mode. * Better connection management: supports SSH Tunnel/SSL/Sentinel Mode/Cluster Mode.
* Visualize key value operations, CRUD support for Lists, Hashes, Strings, Sets, Sorted Sets, and Streams. * Visualize key value operations, CRUD support for Lists, Hashes, Strings, Sets, Sorted Sets, and Streams.
* Support multiple data viewing format and decode/decompression methods. * Support multiple data viewing format and decode/decompression methods.
* Use SCAN for segmented loading, making it easy to list millions of keys.
* Operation command execution logs. * Operation command execution logs.
* Provides command-line operations. * Provides command-line operations.
* Provides slow logs.
## Roadmap ## Roadmap
- [ ] Pagination and querying for List/Hash/Set/Sorted Set - [ ] Pagination and querying for List/Hash/Set/Sorted Set
- [ ] Decode/decompression display for value of List/Hash/Set/Sorted Set - [ ] Decode/decompression display for value of List/Hash/Set/Sorted Set
- [ ] Slow logs
- [ ] Real-time commands monitoring - [ ] Real-time commands monitoring
- [ ] Pub/Sub operations - [ ] Pub/Sub operations
- [ ] Embedding Monaco Editor
## Installation ## Installation

View File

@ -24,15 +24,17 @@
* 更好用的连接管理支持SSH隧道/SSL/哨兵模式/集群模式 * 更好用的连接管理支持SSH隧道/SSL/哨兵模式/集群模式
* 可视化键值操作,增删查改一应俱全 * 可视化键值操作,增删查改一应俱全
* 支持多种数据查看格式以及转码/解压方式 * 支持多种数据查看格式以及转码/解压方式
* 采用SCAN分段加载可轻松处理数百万键列表
* 操作命令执行日志展示 * 操作命令执行日志展示
* 提供命令行操作 * 提供命令行操作
* 提供慢日志展示
## 未来版本规划 ## 未来版本规划
- [ ] List/Hash/Set/Sorted Set的分页展示和查询 - [ ] List/Hash/Set/Sorted Set的分页展示和查询
- [ ] List/Hash/Set/Sorted Set值的转码显示 - [ ] List/Hash/Set/Sorted Set值的转码显示
- [ ] 慢日志展示
- [ ] 命令实时监控 - [ ] 命令实时监控
- [ ] 发布/订阅支持 - [ ] 发布/订阅支持
- [ ] 引入Monaco Editor
## 安装 ## 安装

View File

@ -1659,9 +1659,14 @@ func (c *connectionService) GetSlowLogs(connName string, db int, num int64) (res
} }
list := sliceutil.Map(logs, func(i int) slowLogItem { list := sliceutil.Map(logs, func(i int) slowLogItem {
var name string
var e error
if name, e = url.QueryUnescape(logs[i].ClientName); e != nil {
name = logs[i].ClientName
}
return slowLogItem{ return slowLogItem{
Timestamp: logs[i].Time.UnixMilli(), Timestamp: logs[i].Time.UnixMilli(),
Client: logs[i].ClientName, Client: name,
Addr: logs[i].ClientAddr, Addr: logs[i].ClientAddr,
Cmd: sliceutil.JoinString(logs[i].Args, " "), Cmd: sliceutil.JoinString(logs[i].Args, " "),
Cost: logs[i].Duration.Milliseconds(), Cost: logs[i].Duration.Milliseconds(),

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 KiB

After

Width:  |  Height:  |  Size: 366 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 325 KiB

After

Width:  |  Height:  |  Size: 365 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 329 KiB

After

Width:  |  Height:  |  Size: 378 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 KiB

After

Width:  |  Height:  |  Size: 377 KiB