Skip to content

Latest commit

 

History

History
89 lines (56 loc) · 2.8 KB

SystemViews.md

File metadata and controls

89 lines (56 loc) · 2.8 KB

System views

The rest of the views from the features tour: background operations, replication, storage and server state. All of them are reachable via Ctrl-P (or F2) and as CLI subcommands (chdig merges, ...).

/ filters any of these tables over the loaded rows, narrowing as you type: plain terms are case-insensitive substrings of the row, column<op>value compares a column (rows>1M, size_in_bytes>=2G, event_type=MergeParts, part_name~all_1_%; operators =, !=, ~ LIKE, !~, >, >=, <, <=, number suffixes by the column's unit, column='' for the empty value), and in the part log pe.<Name> (ProfileEvents.<Name>) compares a profile event of the row (pe.SelectedRows>5M). Tab completes the column and event names.

Merges and mutations

system.merges and system.mutations for watching background operations progress:

merges

mutations

Part-level details: Table Parts (system.parts) and Part Log (system.part_log, part lifecycle events - NewPart, MergeParts, ...):

table parts

part log

Replication

In --cluster mode the summary header also lists every host (uptime, cpu and memory with usage bars, running queries, threads, network and disk rates); it takes a third of the screen by default, [/] or dragging its bottom separator resize it, 1 toggles it (view.summary_per_host in the config).

Replication queue (system.replication_queue), Replicated fetches (system.replicated_fetches) and Replicas (system.replicas) - note the replication lag and queue size in the summary header:

replication queue

replicated fetches

replicas

ZooKeeper browser (system.zookeeper, chdig zookeeper): Enter opens a node (or shows its value and stats for a leaf), Backspace/u goes up. Enter on a replica offers to open its replica_path/zookeeper_path there (in the table's auxiliary ZooKeeper if it uses one, ClickHouse 25.6+).

Tables

system.tables with sizes, parts and engine information:

tables

Backups

system.backups:

backups

Dictionaries

system.dictionaries - status, memory usage, hit rate:

dictionaries

Errors

Aggregated system.errors since server start (and Error log shows them over time):

errors

Help

F1 lists all shortcuts and the focused view's actions:

help

And more

Also available (no screenshots): S3/Azure queues, asynchronous inserts, background pool tasks (current and history), metric logs, loggers, and an interactive SQL client (chdig client).