HUB
Sign inSign up
ch-ops logo

quantrailadmin1/ch-ops

By quantrailadmin1

•Updated about 20 hours ago

Admin tool and GUI for ClickHouse® database. Self-hosting ClickHouse® database made easy.

Image
Databases & storage
Monitoring & observability
2

4.2K

quantrailadmin1/ch-ops repository overview

⁠CHOps: a GUI and admin tool for ClickHouse®

CHOps is a web UI for the people who run ClickHouse® themselves: data platform teams, DBAs, and the DevOps engineer who got the cluster. It puts the daily work of operating ClickHouse® in one browser tab. You find a slow query, stop a runaway query, check replication, watch merges, or review access with a click, not a command.

CHOps connects to your cluster over the ClickHouse® HTTP interface. You install nothing on your ClickHouse® servers.

A tour of CHOps


⁠Quick start

You need a ClickHouse® server that the container can reach, its HTTP port (usually 8123), and a user name and password.

docker run -d --name chops -p 7720:7720 \
  -e ENCRYPTION_SECRET="$(openssl rand -hex 32)" \
  -e SUPER_ADMIN_1=admin \
  -e SUPER_ADMIN_1_PASSWORD=change-this-password \
  -e [email protected] \
  -v chops-data:/app/data \
  quantrailadmin1/ch-ops:latest

Open http://localhost:7720 and log in with the admin user name and password. Then go to Control panel > Cluster Management and add your ClickHouse® cluster.

Save the value of ENCRYPTION_SECRET. CHOps uses it to encrypt the stored ClickHouse® passwords. If you start the container again with a different value, CHOps cannot read them.


⁠What CHOps does

Overview

  • Cluster health, and a daily summary of what changed.
  • A live query monitor. Sort by memory, run time or rows read, open the details of a query, and stop one query or many.
  • Query history. Find what was slow, when it ran, and who ran it.
  • Tables and parts, merges and mutations, replication and insert queues, the distributed DDL queue, and read-only replicas.

SQL tools

  • A SQL editor with tabs, schema-aware autocomplete, query parameters, a cost estimate before you run, and every EXPLAIN type as a toggle.
  • Saved queries that keep their parameter values. Each user has their own.
  • Query comparison: two runs side by side with their metrics.
  • Export in 22 formats, such as CSV, JSON, Parquet and ORC, with optional compression. Large exports run in the background.
  • A flame-graph query profiler, a processors profile, and a per-second query metrics timeline.
  • Schema Studio, for guided table creation.
  • Qurioz, an AI assistant that turns a question in plain English into ClickHouse® SQL. You bring your own AI provider key.

Custom dashboards

  • Build charts from your own SQL queries: line, bar, stacked bar, pie and donut, heatmap, radar, gauge, KPI cards and more.
  • Put them on dashboards with a grid layout.
  • Add a parameter to the SQL of a chart, and it becomes a dashboard filter. One filter updates all the charts that use it.

A custom dashboard

Monitoring and logs

  • System dashboards, with a playback mode that replays old metrics step by step.
  • A memory allocator view.
  • Crash, error, text and session logs, with calendar heatmaps and search.

Alerts

  • Alert rules written in SQL, with a threshold. Each node has its own alert state.
  • Notifications to email, Slack, Google Chat, Microsoft Teams and PagerDuty.

Schema, access and backups

  • A schema visualizer, data-skipping indexes, projections and index management.
  • ClickHouse® users, roles, grants and settings profiles on one screen.
  • BACKUP and RESTORE to S3-compatible storage, Google Cloud Storage or Azure Blob Storage. CHOps also finds the backups that you already have.

Administration

  • CHOps users with four roles, multi-cluster setup, system email, trusted certificate authorities, runtime settings, and a backup of the CHOps data.
  • A global search (Ctrl+K or Cmd+K) that opens any page, feature or heading.
  • The full documentation is in the app. Click the book icon in the top bar.

⁠Works with any ClickHouse® deployment

If CHOps can reach the HTTP endpoint, it works:

Your ClickHouse® runs onHow CHOps connects
Bare metal or a virtual machineDirect connection
Docker or Docker ComposeDirect connection
Kubernetes with the Altinity® operatorKubernetes connection, with Kubernetes Insights
Kubernetes with the official ClickHouse® operator (OCKO)Kubernetes connection, with Kubernetes Insights (early access)
Kubernetes with no operatorDirect connection
ClickHouse® Cloud, Altinity.Cloud® and other managed servicesDirect connection

For a cluster that runs under a Kubernetes operator, you select the installation instead of typing host names. The host list stays correct when the cluster scales. Kubernetes Insights adds pages for health, topology, storage, networking, events and logs.

We test CHOps with ClickHouse® 26.3 LTS and 26.8 LTS. Older and newer versions should work, but we do not test them.


⁠Image tags

TagWhat it is
latestThe newest stable release. Use it for production.
X.Y.Z, for example 1.4.1One stable release. It never changes. Use it to control when you upgrade.
X.Y and XThe newest stable release in that line.
beta, X.Y.Z-betaA test release of the next version. It can have bugs. Do not use it for production.
alpha, X.Y.Z-alphaAn early test release.

A beta or alpha release never changes the latest tag. This page describes the newest version, so some features are only in the beta tag until the next stable release.

The images are for linux/amd64 and linux/arm64. The same images are on GitHub Container Registry: ghcr.io/quantrail-data/ch-ops.


⁠Configuration

VariableRequiredWhat it does
ENCRYPTION_SECRETYesMakes the key that encrypts the stored passwords and keys. Use 32 characters or more. Do not change it later.
SUPER_ADMIN_1YesThe user name of the first admin.
SUPER_ADMIN_1_PASSWORDYesThe password of the first admin.
SUPER_ADMIN_1_EMAILYesThe email address of the first admin.
FRONTEND_LINKNoThe address that users open, for example https://chops.example.com. CHOps puts it in the links that set a password.
TRUST_PROXYNoThe number of proxies in front of CHOps, for example 1 behind one reverse proxy. Then the rate limits see the real IP address of each user.
DISABLE_ENV_LOGINNoSet to true to turn off the extra login with the SUPER_ADMIN_1 values. The first admin can still log in, because CHOps saves that account in its database at the first start.

All the other settings are optional. The configuration page⁠ lists them.

Ports and folders

  • The container listens on port 7720.
  • /app/data holds the CHOps database (chops.db) and the encryption salt (crypto.salt). Put it on a volume. If you lose crypto.salt, CHOps cannot read the stored passwords.
  • /app/exports holds the export files for a short time. It does not need a volume.
  • The container runs as a user that is not root. It has a health check on /api/health.

CHOps keeps its own settings (users, clusters, dashboards and alerts) in the small SQLite database in /app/data. It does not change your ClickHouse® data or schema. It changes data only when you run a query that does so.


⁠Docker Compose

services:
  chops:
    image: quantrailadmin1/ch-ops:latest
    container_name: chops
    restart: unless-stopped
    ports:
      - "7720:7720"
    environment:
      - ENCRYPTION_SECRET=replace-with-a-long-random-value
      - SUPER_ADMIN_1=admin
      - SUPER_ADMIN_1_PASSWORD=change-this-password
      - [email protected]
    volumes:
      - chops-data:/app/data

volumes:
  chops-data:

Start it with docker compose up -d. Stop it with docker compose down. The data stays in the chops-data volume.


⁠Kubernetes

The repository has example manifests: a StatefulSet with a persistent volume, a Service, a ConfigMap and an Ingress. Run one replica only. The guide Run CHOps in Kubernetes⁠ tells you how to set the storage, HTTPS, upgrades, and backup and restore.


⁠Upgrade

docker pull quantrailadmin1/ch-ops:latest
docker rm -f chops
# Then run the same "docker run" command again.

With Docker Compose, change the tag if necessary, then run docker compose pull and docker compose up -d.

Your data stays in the volume. When a new version must change its database, it first copies the database to /app/data/backups/. To go back to an older version, you also need that copy, because an older version does not start on a newer database.

To back up the CHOps database while it runs:

docker exec chops bun run db:backup

The backup goes to /app/data/backups/. Copy it to a safe place, and keep ENCRYPTION_SECRET with it.


⁠Production

For production, put CHOps behind a reverse proxy with HTTPS, and set TRUST_PROXY and FRONTEND_LINK. The production guide⁠ has a full example with Caddy and systemd, plus security settings and automated backups.


⁠Community and Pro editions

This image is the free Community edition. It is open source under the Apache License 2.0, and you can use it in production and in commercial products. Everything on this page is in the Community edition.

For teams that need more, Quantrail™ Data also offers CHOps Pro. Pro adds scheduled archival to object storage, scheduled backups with retention, an audit log, single sign-on with OpenID Connect, scheduled email reports, and remote administration through a sidecar. Pro has a commercial license. To learn more, go to ch-ops.io⁠.


⁠License and trademarks

The CHOps Community edition uses the Apache License 2.0⁠. Copyright © 2026 Quantrail™ Data Private Limited.

ClickHouse® is a registered trademark of ClickHouse, Inc. CHOps is an independent project of Quantrail™ Data Private Limited. It is not affiliated with, endorsed by, or sponsored by ClickHouse, Inc. Altinity® is a registered trademark of Altinity, Inc. All other trademarks are the property of their owners.

Tag summary

Content type

Image

Digest

sha256:07c0d05ba…

Size

198.8 MB

Last updated

about 20 hours ago

docker pull quantrailadmin1/ch-ops