Skip to main content

TraceHouse
ClickHouse monitoring and resource analysis

An open-source tool to visually explore and monitor ClickHouse.
Inspect resource attribution, merge activity, query performance, and engine internals.

Time Travel

Correlate historical resource metrics with recorded queries, merges, and mutations.

Real-time View

Monitor live CPU, memory, disk I/O, and network usage. Select a resource attribution to inspect the associated queries, merges, or parts.

Database Explorer

Browse databases, tables, parts, and columns. Inspect part lineage, merge history, and storage efficiency.

Merge Tracker

Live merge monitoring with dependency diagrams, timeline views, and throughput analysis.

Query Monitor

Running queries with per-query resource attribution, query anatomy breakdowns, and historical analysis from query_log.

Engine Internals

Visualizations of ClickHouse engine internals, with reference to ClickHouse – Lightning Fast Analytics for Everyone (VLDB 2024). Thread pools, memory allocators, CPU sampling, PK index efficiency, and dictionaries.

System Map

An interactive map of ClickHouse system tables, metrics, and diagnostics organized by subsystem. Inspired by Brendan Gregg's Linux Performance Tools and Azat Khuzhin's "Know Your ClickHouse".

Analytics

A query editor and dashboard builder for creating reusable views of cluster metrics. Queries can be saved, shared, and pinned to dashboards.

App Internal Monitor

Tracks the monitoring tool's own CPU, memory, and network usage per request to measure its overhead on the cluster.

Grafana Plugin

Deploys as a Grafana app plugin. Uses a configured Grafana ClickHouse data source and the current Grafana session for query execution.

Quickstart

# Clone the repo
git clone https://github.com/dmkskd/tracehouse.git && cd tracehouse
# Start the app and a local ClickHouse instance
cd infra/quickstart && docker compose up

# Open http://localhost:8990
or
Try Online

Single-file HTML that runs entirely in your browser with any CORS-enabled ClickHouse instance.

The online version will ask for your ClickHouse credentials. If you prefer not to enter them on a third-party page, download it from the releases page or build it yourself.

Frequently Asked Questions

  • Some views use 3D to show relationships between parts, merges, and resources that are hard to represent in flat charts. If you prefer a simpler view, every screen has a 2D mode.

  • The monitoring views read ClickHouse system tables. Optional sampling setup creates tables and writes sample data. On connect it probes the server for available capabilities (log tables, introspection functions, profiler settings, cluster topology, Keeper, Cloud mode) and disables features that aren't available. Some features (e.g. query profiling, trace_log) may require enabling specific settings on your server. See Connecting to ClickHouse for details.

  • TraceHouse is developed against recent ClickHouse releases. Older versions may work but some features that depend on newer system tables will be unavailable. The capability detection on connect will tell you what's missing.

  • Yes. Connections are stateless (HTTP-based), so you can configure multiple ClickHouse connections and switch between them in the UI. Each cluster gets its own overview dashboard, merge tracker, and query monitor.

  • TraceHouse polls system tables at configurable intervals (default 5 s). We are actively working on optimising query overhead. You can check the actual impact yourself via the built-in App Internal Monitor, which tracks the tool's own CPU, memory, and network usage per request.

  • TraceHouse is a client-side application. It runs entirely in the browser and does not install anything on your ClickHouse server or Grafana backend. It can be deployed as a Grafana app plugin, reusing your existing Grafana ClickHouse datasource and permissions, or run independently as a standalone web app.

  • Use a dedicated read-only ClickHouse account for monitoring and evaluate query load, memory usage, and network overhead in a staging environment before production deployment. Optional sampling setup requires write permissions and creates persistent data. Performance has not been validated for every cluster size or workload.

Questions or feedback? Click to reveal email