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

系统。活动

包含有关系统中发生的事件数的信息。 例如,在表中,您可以找到多少 SELECT 自ClickHouse服务器启动以来已处理查询。

列:

  • event (字符串) — Event name.
  • value (UInt64) — Number of events occurred.
  • description (字符串) — Event description.

示例

  1. SELECT * FROM system.events LIMIT 5
  1. ┌─event─────────────────────────────────┬─value─┬─description────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
  2. 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.
  3. SelectQuery 8 Same as Query, but only for SELECT queries.
  4. FileOpen 73 Number of files opened.
  5. ReadBufferFromFileDescriptorRead 155 Number of reads (read/pread) from a file descriptor. Does not include sockets.
  6. ReadBufferFromFileDescriptorReadBytes 9931 Number of bytes read from file descriptors. If the file is compressed, this will show the compressed data size.
  7. └───────────────────────────────────────┴───────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

另请参阅