Skip to content

Getting Started

The fastest path: run chmonitor against an existing ClickHouse instance using Docker. You need three environment variables and one command.

  • A running ClickHouse instance reachable from where you deploy.
  • A ClickHouse user with SELECT on system.* (see ClickHouse user & grants).
  • Docker installed locally.

Replace vX.Y.Z with a real release tag from GitHub releases:

Terminal window
docker run -d \
--name chmonitor \
-p 3000:3000 \
-e CLICKHOUSE_HOST=http://your-clickhouse-host:8123 \
-e CLICKHOUSE_USER=monitoring \
-e CLICKHOUSE_PASSWORD=your-password \
ghcr.io/duyet/chmonitor:vX.Y.Z

Open http://localhost:3000.

Note: If ClickHouse runs on the same Docker host, use the host gateway address instead of localhost. On Linux that is typically 172.17.0.1; on Mac/Windows use host.docker.internal.

The overview page loads immediately. If pages are empty or show errors:

  1. Check the container logs: docker logs chmonitor
  2. Confirm the ClickHouse user can query system.query_log directly.
  3. See Enable system tables if some tables are missing.
TaskGuide
Create a safe read-only monitoring userClickHouse user & grants
Enable system log tables for full feature coverageEnable system tables
Deploy to Kubernetes, Cloudflare, or VercelInstall & Configure
Require login before accessing the dashboardAuthentication
Set up the AI agentAI Agent
Develop locally from sourceLocal development