chdig
TUI interface for debugging and monitoring ClickHouse databases with top-like views and flamegraph analysis
chdig is a terminal user interface (TUI) tool for debugging and monitoring ClickHouse databases. It provides a top-like interface that aggregates ClickHouse's introspection capabilities into a single interactive view, making it easier to diagnose performance issues and monitor database activity without remembering numerous system tables and queries.
The tool includes flamegraph visualization for CPU, memory, and live profiling directly in the terminal using flamelens integration. It supports sharing flamegraphs via pastila.nl and speedscope, exporting Perfetto traces, and visualizing query execution pipelines. Users can share logs and analysis results through integrated web services, making collaboration on performance issues more accessible.
chdig supports cluster-wide monitoring with the --cluster flag to aggregate data from multiple hosts, and historical analysis using --history to include rotated system log tables. It maintains compatibility with clickhouse-client options and configuration files, including connection parameters. The tool targets database administrators, developers, and SREs who need to regularly investigate ClickHouse performance and operational issues.
Installation
# via Homebrew
brew install chdig
# via Scoop
scoop bucket add extras && scoop install extras/chdig
# via Cargo
cargo build

Alternatives & related tools
tuptime
System uptime tracking tool that preserves historical uptime/downtime statistics across reboots with detailed reporting
countryfetch
A neofetch-like CLI tool that displays information about countries including flags, demographics, and geographic data.
cy
Terminal multiplexer with time-travel replay, fuzzy finding, and Janet configuration language
kbt
Terminal-based keyboard testing tool for checking key functionality across multiple layouts
cotp
Command-line TOTP/HOTP authenticator with encrypted database and interactive dashboard for two-factor authentication codes
add a badge to your README
Maintain chdig? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/chdig?utm_source=badge)<a href="https://www.trmn.sh/tools/chdig?utm_source=badge"><img src="https://www.trmn.sh/badge/chdig.svg" alt="Featured on trmn" height="20"></a>