Getting Started
The fastest path: run chmonitor against an existing ClickHouse instance using Docker. You need three environment variables and one command.
Prerequisites
Section titled “Prerequisites”- A running ClickHouse instance reachable from where you deploy.
- A ClickHouse user with
SELECTonsystem.*(see ClickHouse user & grants). - Docker installed locally.
Run with Docker
Section titled “Run with Docker”Replace vX.Y.Z with a real release tag from GitHub releases:
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.ZOpen http://localhost:3000.
Note: If ClickHouse runs on the same Docker host, use the host gateway address instead of
localhost. On Linux that is typically172.17.0.1; on Mac/Windows usehost.docker.internal.
Verify it works
Section titled “Verify it works”The overview page loads immediately. If pages are empty or show errors:
- Check the container logs:
docker logs chmonitor - Confirm the ClickHouse user can query
system.query_logdirectly. - See Enable system tables if some tables are missing.
Next steps
Section titled “Next steps”| Task | Guide |
|---|---|
| Create a safe read-only monitoring user | ClickHouse user & grants |
| Enable system log tables for full feature coverage | Enable system tables |
| Deploy to Kubernetes, Cloudflare, or Vercel | Install & Configure |
| Require login before accessing the dashboard | Authentication |
| Set up the AI agent | AI Agent |
| Develop locally from source | Local development |