Skip to main content
在 ClickHouse Cloud 中查询此系统表中的数据分别保存在 ClickHouse Cloud 各节点的本地。因此,如需查看所有数据的完整情况,需要使用 clusterAllReplicas 函数。更多详情请参见此处

描述

此表包含可即时计算并以 Prometheus 格式导出的维度指标,且会始终保持最新状态。

示例

您可以使用如下查询,以 Prometheus 格式导出所有维度指标。

指标说明

merge_failures

自启动以来所有失败 merge 的数量。

startup_scripts_failure_reason

按错误类型指示启动脚本失败情况。当启动脚本失败时,该值设为 1,并带有错误名称标记。

merge_tree_parts

MergeTree 数据分区片段的数量,按分区片段状态、分区片段类型以及是否为投影分区片段区分。

filesystem_cache_evictions_total

从文件系统缓存中逐出的 File 段数量,按缓存名称标记。默认禁用;可通过 expose_prometheus_eviction_metrics 启用。

filesystem_cache_evicted_bytes_total

从文件系统缓存中被逐出的 File 段总字节数,按缓存名称加标签。默认禁用;可通过 expose_prometheus_eviction_metrics 启用。

filesystem_cache_evictions_by_user_total

从文件系统缓存中逐出的 File 段数量,按缓存名称和用户 ID 标记。默认禁用;可通过 expose_prometheus_eviction_metricsexpose_prometheus_eviction_metrics_per_user 启用。

filesystem_cache_evicted_bytes_by_user_total

从文件系统缓存中淘汰的 File 段总字节数,按缓存名称和用户 ID 进行标记。默认禁用;可通过 expose_prometheus_eviction_metricsexpose_prometheus_eviction_metrics_per_user 启用。

另请参阅

最后修改于 2026年7月23日