Atatus Database Monitoring provides deep visibility into your ClickHouse Cloud services by collecting key system metrics, query summary statistics, active query samples, completed query events, query errors, EXPLAIN plans, and MergeTree parts/merges health. ClickHouse Cloud exposes a single load-balanced endpoint that routes to one of the underlying replicas. To collect cluster-wide telemetry through that single endpoint, the Atatus Infra Agent rewrites system.<table> references to clusterAllReplicas('default', system.<table>). This guide walks you through the prerequisites and setup process.

Before You Begin

Setup Database Access for the Agent

Open a SQL console for your ClickHouse Cloud service (from the ClickHouse Cloud UI or via clickhouse-client against the service endpoint) and run the following statements as an administrator.
  1. Create the atatus user:
  2. Grant SELECT access on the system.* tables the Agent reads:
  3. Grant the REMOTE privilege so the Agent can query across all replicas via clusterAllReplicas():
    REMOTE only allows the Agent to fan out the already-granted system.* SELECTs across replicas. It does not expand access to any other tables.

Configure Atatus Infrastructure Agent

  1. Install the Atatus Infrastructure agent on a host that can reach your ClickHouse Cloud service over the public internet (or via a private link, if configured).
  2. Copy the ClickHouse example configuration file:
  3. Update the ClickHouse configuration file: Add the following configuration to /etc/atatus-infra-agent/conf.d/clickhouse.d/clickhouse.yml:
    Replace <SERVICE_HOSTNAME> with your ClickHouse Cloud service hostname (for example, xyz.us-east-2.aws.clickhouse.cloud) and <UNIQUEPASSWORD> with the password you created above. Key ClickHouse Cloud requirements:
  4. Restart the Atatus Infra Agent:

Verify

Confirm the atatus user can connect to the cloud service and read the core system.* tables across replicas:

HTTP Protocol (Alternative)

If your environment only allows outbound HTTPS, you can use the ClickHouse Cloud HTTP interface on port 8443 instead of the native protocol on 9440:

Tuning DBM Feature Toggles (Optional)

Each Database Monitoring feature can be turned on or off individually under dbm_clickhouse_options. All features are enabled by default once dbm: true (except query_explain, which can be opted out via enabled: false). For the full list of feature toggles, query log tunables, EXPLAIN tunables, and parts/merges tunables, see the self-hosted setup guide.

Overriding the Reported Hostname (Optional)

ClickHouse Cloud service hostnames can be long. To report a friendlier name in events:
On serverless ClickHouse Cloud services with auto-suspend enabled, ongoing Database Monitoring collection may prevent the service from suspending during idle periods. Adjust collection intervals or feature toggles if this affects your billing.