본문으로 바로가기
본문으로 바로가기

system.events

ClickHouse Cloud에서 쿼리하기

이 시스템 테이블의 데이터는 ClickHouse Cloud의 각 노드에 로컬로 저장됩니다. 따라서 전체 데이터를 조회하려면 clusterAllReplicas 함수를 사용해야 합니다. 자세한 내용은 여기를 참고하십시오.

시스템에서 발생한 이벤트 개수에 대한 정보를 포함합니다. 예를 들어, 이 테이블에서 ClickHouse 서버가 시작된 이후 처리된 SELECT 쿼리의 개수를 확인할 수 있습니다.

컬럼:

  • event (String) — 이벤트 이름.
  • value (UInt64) — 발생한 이벤트 수.
  • description (String) — 이벤트 설명.

지원되는 모든 이벤트는 소스 파일 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_logsystem.metricssystem.events 테이블의 메트릭 값 이력을 포함합니다.
  • Monitoring — ClickHouse 모니터링의 기본 개념을 설명합니다.