Dig into ClickHouse with TUI interface.
There are pre-built packages for the latest available version:
And also see releases as well.
The idea is came from everyday digging into various ClickHouse issues.
ClickHouse has a approximately universe of introspection tools, and it is easy to forget some of them. At first I came with some slides and a picture (to attract your attention) by analogy to what Brendan Gregg did for Linux:
Note, the picture and the presentation had been made in the beginning of 2022, so it may not include some new introspection tools.
But this requires you to dig into lots of places, and even though during this process you will learn a lot, it does not solves the problem of forgetfulness. So I came up with this simple TUI interface that tries to make this process simpler.
chdig
can be used not only to debug some problems, but also just as a regular
introspection, like top
for Linux.
See also FAQ
top
like interface (or csysdig
to be more precise)--cluster
)system.processes
)system.query_log
)system.query_log
)system.processors_profile_log
)system.query_views_log
)system.text_log
)system.text_log
)system.merges
)system.mutations
)system.replicas
)system.replication_queue
)system.replicated_fetches
)system.backups
)system.errors
)And there is a huge bunch of TODOs (right now it is too huge to include it here).
Note, this it is in a pre-alpha stage, so everything can be changed (keyboard shortcuts, views, color schema and of course features)
If something does not work, like you have too old version of ClickHouse, consider upgrading.
Later some backward compatiblity will be added as well.
Note: the oldest version that had been tested was 21.2
Prerequisites:
# will build deb/rpm/archlinux packages
make packages
clog.py
- Highlight ClickHouse logsSince Rust is a new language to me, the code can be far from ideal.