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 viaclickhouse-client against the service endpoint) and run the following statements as an administrator.
-
Create the
atatususer: -
Grant SELECT access on the
system.*tables the Agent reads: -
Grant the
REMOTEprivilege so the Agent can query across all replicas viaclusterAllReplicas():REMOTEonly allows the Agent to fan out the already-grantedsystem.*SELECTs across replicas. It does not expand access to any other tables.
Configure Atatus Infrastructure Agent
- 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).
-
Copy the ClickHouse example configuration file:
-
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: -
Restart the Atatus Infra Agent:
Verify
Confirm theatatus 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 port8443 instead of the native protocol on 9440:
Tuning DBM Feature Toggles (Optional)
Each Database Monitoring feature can be turned on or off individually underdbm_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.