跳到主要内容
跳到主要内容

histogram_metrics

Querying in ClickHouse Cloud

The data in this system table is held locally on each node in ClickHouse Cloud. Obtaining a complete view of all data, therefore, requires the clusterAllReplicas function. See here for further details.

此表包含可即时计算并以 Prometheus 格式导出的直方图指标,其内容始终保持最新,用于替代已弃用的 system.latency_log

列:

示例

你可以使用如下所示的查询,将所有直方图指标以 Prometheus 格式导出。

SELECT
  metric AS name,
  toFloat64(value) AS value,
  description AS help,
  labels,
  'histogram' AS type
FROM system.histogram_metrics
FORMAT Prometheus

指标说明

keeper_response_time_ms_bucket

Keeper 的响应时间(毫秒)。

另请参阅