Skip to main content
HealOps queries ClickHouse system tables to surface slow queries, active connections, replica status, and table statistics — helping diagnose database performance issues during alert investigations.

Prerequisites

  • ClickHouse 21.x or later
  • Network access from the HealOps environment to your ClickHouse instance
  • A user with read access to system tables

Setup

Option 1: Interactive CLI

Select ClickHouse when prompted and provide your host and credentials.

Option 2: Environment variables

Add to your .env:

Option 3: Persistent store

Creating a read-only user

Investigation tools

When HealOps investigates a ClickHouse-related alert, three diagnostic tools are available:
  • Query activity — reads system.query_log to surface recent slow and failed queries
  • System health — reads system.metrics for active connections, query count, replica status, and uptime
  • Table stats — reads system.parts for table-level row counts and storage sizes
All operations are read-only.

Verify

Expected output:

Troubleshooting

Security best practices

  • Create a dedicated read-only user with access only to system.* and the databases HealOps needs.
  • Use HTTPS (CLICKHOUSE_SECURE=true) in production.
  • Store credentials in .env, not in source code.