Sysutil
sysutil is a library which implementats the gRPC service Diagnostics and shares the diagnostics functions between TiDB and PD.
Install / Use
/learn @pingcap/SysutilREADME
sysutil
sysutil is a library which implementats the gRPC service Diagnostics
and shares the diagnostics functions between TiDB and PD.
Search log
The semantics of the log search service is: search for local log files, and filter using predicates, and then return the matched results.
The following are the predicates that the log interface needs to process:
start_time: start time of the log retrieval (Unix timestamp, in milliseconds). If there is no such predicate, the default is 0.end_time:: end time of the log retrieval (Unix timestamp, in milliseconds). If there is no such predicate, the default isint64::MAX.pattern: filter pattern determined by the keyword. For example,SELECT * FROM tidb_cluster_logWHERE "%gc%"%gc%is the filtered keyword.level: log level; can be selected as DEBUG/INFO/WARN/WARNING/TRACE/CRITICAL/ERRORlimit: the maximum of logs items to return, preventing the log from being too large and occupying a large bandwidth of the network.. If not specified, the default limit is 64k.
System information collect
Hardware
- CPU
- NIC
- Disk
- Memory
System
- sysctl
- process list
Load
- CPU
- Memory
- NIC
- Disk IO
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
