> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-fbfa8bee.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` 関数を使用する必要があります。詳細については、[こちら](/ja/reference/system-tables/overview#system-tables-in-clickhouse-cloud)を参照してください。
</Info>

<div id="description">
  ## 説明
</div>

このテーブルには、即座に計算でき、Prometheus フォーマットでエクスポート可能な次元メトリクスが含まれています。常に最新の状態に保たれています。

<div id="columns">
  ## カラム
</div>

* `metric` ([String](/ja/reference/data-types/index)) — メトリクス名。
* `value` ([Float64](/ja/reference/data-types/index)) — メトリクス値。
* `description` ([String](/ja/reference/data-types/index)) — メトリクスの説明。
* `labels` ([Map(String, String)](/ja/reference/data-types/index)) — メトリクスラベル。

<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>

起動以降に失敗したマージの総数。

<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](/ja/reference/system-tables/asynchronous_metrics) — 定期的に計算されるメトリクスを含みます。
* [system.events](/ja/reference/system-tables/events) — 発生した各種イベントを含みます。
* [system.metric\_log](/ja/reference/system-tables/metric_log) — テーブル `system.metrics` および `system.events` のメトリクス値の履歴を含みます。
* [監視](/ja/guides/oss/deployment-and-scaling/monitoring/monitoring) — ClickHouse の監視に関する基本概念。
