> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-fix-nav-issues.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> 该表包含可即时计算并以 Prometheus 格式导出的维度指标，并且始终保持最新。

# system.dimensional_metrics

<Info>
  **在 ClickHouse Cloud 中查询**

  此系统表中的数据分别保存在 ClickHouse Cloud 各节点的本地。因此，如需查看所有数据的完整情况，需要使用 `clusterAllReplicas` 函数。更多详情请参见[此处](/zh/reference/system-tables/overview#system-tables-in-clickhouse-cloud)。
</Info>

<div id="description">
  ## 描述
</div>

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

<div id="columns">
  ## 列
</div>

* `metric` ([String](/zh/reference/data-types)) — 指标名称。
* `value` ([Float64](/zh/reference/data-types)) — 指标值。
* `description` ([String](/zh/reference/data-types)) — 指标说明。
* `labels` ([Map(String, String)](/zh/reference/data-types)) — 指标标记。

<div id="example">
  ## 示例
</div>

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

```sql theme={null}
SELECT
  metric AS name,
  toFloat64(value) AS value,
  description AS help,
  labels,
  'gauge' AS type
FROM system.dimensional_metrics
FORMAT Prometheus
```

<div id="metric_descriptions">
  ## 指标说明
</div>

<div id="merge_failures">
  ### merge\_failures
</div>

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

<div id="startup_scripts_failure_reason">
  ### startup\_scripts\_failure\_reason
</div>

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

<div id="merge_tree_parts">
  ### merge\_tree\_parts
</div>

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

<div id="see-also">
  ## 另请参阅
</div>

* [system.asynchronous\_metrics](/zh/reference/system-tables/asynchronous_metrics) — 包含定期计算的指标。
* [system.events](/zh/reference/system-tables/events) — 包含已发生的一系列事件。
* [system.metric\_log](/zh/reference/system-tables/metric_log) — 包含来自表 `system.metrics` 和 `system.events` 的指标值历史记录。
* [监控](/zh/guides/oss/deployment-and-scaling/monitoring/monitoring) — ClickHouse 监控的基本概念。
