メインコンテンツへスキップ
メインコンテンツへスキップ

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 の代替です。

列:

  • metric (String) — メトリック名。
  • value (Int64) — メトリック値。
  • description (String) — メトリックの説明。
  • labels (Map(String, String)) — メトリックのラベル。

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 の応答時間(ミリ秒単位)です。

関連項目

  • system.asynchronous_metrics — 定期的に計算されるメトリクスを格納します。
  • system.events — 発生したイベントの数を格納します。
  • system.metric_log — テーブル system.metrics および system.events のメトリクス値の履歴を格納します。
  • Monitoring — ClickHouse の監視に関する基本概念を説明します。