Dig into ClickHouse with TUI interface.
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.
toplike interface (or
csysdigto be more precise)
- Flamegraphs (CPU/Real/Memory)
- Query logs
- Cluster support (
- Query view (
- Merges view (
- Replicas (
- Replication queue view (
- Fetches (
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)
- ClickHouse 23.1+
For now, only deb packages are available.
But we are using
nfpm, so any supported package, archlinux, deb, rpm, tar, you name it, can be supported):
Third party libraries
Since Rust is a new language to me, the code can be far from ideal.