Currently metrics queries are against local system tables only in Clickhouse. If customers have multi-nodes cluster, it will just reflect the metrics of one node whichever agent is connecting to. This isn't ideal. We should leverage clusterAllReplicas or remote to get all replicas info.
https://github.com/DataDog/integrations-core/blob/b24ab848bb79718e4963c106b47173105b81ae3d/clickhouse/datadog_checks/clickhouse/queries.py#L9
Currently metrics queries are against local system tables only in Clickhouse. If customers have multi-nodes cluster, it will just reflect the metrics of one node whichever agent is connecting to. This isn't ideal. We should leverage
clusterAllReplicas
orremote
to get all replicas info.https://clickhouse.com/docs/en/sql-reference/table-functions/cluster https://clickhouse.com/docs/en/sql-reference/table-functions/remote