Help wanted!

The following content of this documentation page has been machine-translated. But unlike other websites, it is not done on the fly. This translated text lives on GitHub repository alongside main ClickHouse codebase and waits for fellow native speakers to make it more human-readable. You can also use the original English version as a reference.

Help ClickHouse documentation by editing this page

系统。指标

包含可以立即计算或具有当前值的指标。 例如,同时处理的查询的数量或当前副本的延迟。 此表始终是最新的。

列:

支持的指标列表,您可以在 src/Common/CurrentMetrics.cpp ClickHouse的源文件。

示例

  1. SELECT * FROM system.metrics LIMIT 10
  1. ┌─metric─────────────────────┬─value─┬─description──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
  2. Query 1 Number of executing queries
  3. Merge 0 Number of executing background merges
  4. PartMutation 0 Number of mutations (ALTER DELETE/UPDATE)
  5. ReplicatedFetch 0 Number of data parts being fetched from replicas
  6. ReplicatedSend 0 Number of data parts being sent to replicas
  7. ReplicatedChecks 0 Number of data parts checking for consistency
  8. BackgroundPoolTask 0 Number of active tasks in BackgroundProcessingPool (merges, mutations, fetches, or replication queue bookkeeping)
  9. BackgroundSchedulePoolTask 0 Number of active tasks in BackgroundSchedulePool. This pool is used for periodic ReplicatedMergeTree tasks, like cleaning old data parts, altering data parts, replica re-initialization, etc.
  10. DiskSpaceReservedForMerge 0 Disk space reserved for currently running background merges. It is slightly more than the total size of currently merging parts.
  11. DistributedSend 0 Number of connections to remote servers sending data that was INSERTed into Distributed tables. Both synchronous and asynchronous mode.
  12. └────────────────────────────┴───────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

另请参阅