メインコンテンツまでスキップ
メインコンテンツまでスキップ

system.events

ClickHouse Cloud におけるクエリ

このシステムテーブルのデータは、ClickHouse Cloud の各ノードにローカルに保持されています。したがって、すべてのデータの完全なビューを取得するには、clusterAllReplicas 関数が必要です。詳細については こちら を参照してください。

システムで発生したイベントの数に関する情報を含みます。例えば、このテーブルでは、ClickHouseサーバーが起動してから処理された SELECT クエリの数を確認できます。

カラム:

  • event (String) — イベント名。
  • value (UInt64) — 発生したイベントの数。
  • description (String) — イベントの説明。
  • name (String) — event のエイリアス。

サポートされているすべてのイベントは、ソースファイル src/Common/ProfileEvents.cpp で確認できます。

SELECT * FROM system.events LIMIT 5
┌─event─────────────────────────────────┬─value─┬─description────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Query                                 │    12 │ Number of queries to be interpreted and potentially executed. Does not include queries that failed to parse or were rejected due to AST size limits, quota limits or limits on the number of simultaneously running queries. May include internal queries initiated by ClickHouse itself. Does not count subqueries.                  │
│ SelectQuery                           │     8 │ Same as Query, but only for SELECT queries.                                                                                                                                                                                                                │
│ FileOpen                              │    73 │ Number of files opened.                                                                                                                                                                                                                                    │
│ ReadBufferFromFileDescriptorRead      │   155 │ Number of reads (read/pread) from a file descriptor. Does not include sockets.                                                                                                                                                                             │
│ ReadBufferFromFileDescriptorReadBytes │  9931 │ Number of bytes read from file descriptors. If the file is compressed, this will show the compressed data size.                                                                                                                                              │
└───────────────────────────────────────┴───────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

関連項目

  • system.asynchronous_metrics — 定期的に計算されたメトリックを含みます。
  • system.metrics — 即座に計算されたメトリックを含みます。
  • system.metric_log — テーブル system.metricssystem.events のメトリック値の履歴を含みます。
  • Monitoring — ClickHouseモニタリングの基本概念。