Skip to main content
Skip to main content

system.metrics

Querying in ClickHouse Cloud

The data in this system table is held locally on each node in ClickHouse Cloud. Obtaining a complete view of all data, therefore, requires the clusterAllReplicas function. See here for further details.

Contains metrics which can be calculated instantly, or have a current value. For example, the number of simultaneously processed queries or the current replica delay. This table is always up to date.

Columns:

  • metric (String) — Metric name.
  • value (Int64) — Metric value.
  • description (String) — Metric description.

You can find all supported metrics in source file src/Common/CurrentMetrics.cpp.

Example

SELECT * FROM system.metrics LIMIT 10
┌─metric───────────────────────────────┬─value─┬─description────────────────────────────────────────────────────────────┐
│ Query                                │     1 │ Number of executing queries                                            │
│ Merge                                │     0 │ Number of executing background merges                                  │
│ PartMutation                         │     0 │ Number of mutations (ALTER DELETE/UPDATE)                              │
│ ReplicatedFetch                      │     0 │ Number of data parts being fetched from replicas                       │
│ ReplicatedSend                       │     0 │ Number of data parts being sent to replicas                            │
│ ReplicatedChecks                     │     0 │ Number of data parts checking for consistency                          │
│ BackgroundMergesAndMutationsPoolTask │     0 │ Number of active merges and mutations in an associated background pool │
│ BackgroundFetchesPoolTask            │     0 │ Number of active fetches in an associated background pool              │
│ BackgroundCommonPoolTask             │     0 │ Number of active tasks in an associated background pool                │
│ BackgroundMovePoolTask               │     0 │ Number of active tasks in BackgroundProcessingPool for moves           │
└──────────────────────────────────────┴───────┴────────────────────────────────────────────────────────────────────────┘

Metric descriptions

MetricDescription
ASTFuzzerAccumulatedFragmentsNumber of AST fragments accumulated by the server-side AST fuzzer for use in future mutations.
ActiveTimersInQueryProfilerNumber of Active thread local timers in QueryProfiler
AddressesActiveTotal count of addresses which are used for creation connections with connection pools
AddressesBannedTotal count of addresses which are banned as faulty for creation connections with connection pools
AggregatorThreadsNumber of threads in the Aggregator thread pool.
AggregatorThreadsActiveNumber of threads in the Aggregator thread pool running a task.
AggregatorThreadsScheduledNumber of queued or active jobs in the Aggregator thread pool.
AsyncInsertCacheSizeNumber of async insert hash id in cache
AsynchronousInsertQueueBytesNumber of pending bytes in the AsynchronousInsert queue.
AsynchronousInsertQueueSizeNumber of pending tasks in the AsynchronousInsert queue.
AsynchronousInsertThreadsNumber of threads in the AsynchronousInsert thread pool.
AsynchronousInsertThreadsActiveNumber of threads in the AsynchronousInsert thread pool running a task.
AsynchronousInsertThreadsScheduledNumber of queued or active jobs in the AsynchronousInsert thread pool.
AsynchronousReadWaitNumber of threads waiting for asynchronous read.
AttachedDatabaseActive databases.
AttachedDictionaryActive dictionaries.
AttachedReplicatedTableActive replicated tables.
AttachedTableActive tables.
AttachedViewActive views.
AvroSchemaCacheBytesSize of the Avro schema cache in bytes
AvroSchemaCacheCellsNumber of cached Avro schemas
AvroSchemaRegistryCacheBytesSize of the Avro schema registry cache in bytes
AvroSchemaRegistryCacheCellsNumber of entries in Avro schema registry cache
AzureRequestsNumber of currently executing Azure requests
BackgroundBufferFlushSchedulePoolSizeLimit on number of tasks in BackgroundBufferFlushSchedulePool
BackgroundBufferFlushSchedulePoolTaskNumber of active tasks in BackgroundBufferFlushSchedulePool. This pool is used for periodic Buffer flushes
BackgroundCommonPoolSizeLimit on number of tasks in an associated background pool
BackgroundCommonPoolTaskNumber of active tasks in an associated background pool
BackgroundDistributedSchedulePoolSizeLimit on number of tasks in BackgroundDistributedSchedulePool
BackgroundDistributedSchedulePoolTaskNumber of active tasks in BackgroundDistributedSchedulePool. This pool is used for distributed sends that is done in background.
BackgroundFetchesPoolSizeLimit on number of simultaneous fetches in an associated background pool
BackgroundFetchesPoolTaskNumber of active fetches in an associated background pool
BackgroundMergesAndMutationsPoolSizeLimit on number of active merges and mutations in an associated background pool
BackgroundMergesAndMutationsPoolTaskNumber of active merges and mutations in an associated background pool
BackgroundMessageBrokerSchedulePoolSizeLimit on number of tasks in BackgroundMessageBrokerSchedulePool for message streaming
BackgroundMessageBrokerSchedulePoolTaskNumber of active tasks in BackgroundMessageBrokerSchedulePool for message streaming
BackgroundMovePoolSizeLimit on number of tasks in BackgroundProcessingPool for moves
BackgroundMovePoolTaskNumber of active tasks in BackgroundProcessingPool for moves
BackgroundSchedulePoolSizeLimit on number of tasks in BackgroundSchedulePool. This pool is used for periodic ReplicatedMergeTree tasks, like cleaning old data parts, altering data parts, replica re-initialization, etc.
BackgroundSchedulePoolTaskNumber 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.
BackupsIOThreadsNumber of threads in the BackupsIO thread pool.
BackupsIOThreadsActiveNumber of threads in the BackupsIO thread pool running a task.
BackupsIOThreadsScheduledNumber of queued or active jobs in the BackupsIO thread pool.
BackupsThreadsNumber of threads in the thread pool for BACKUP.
BackupsThreadsActiveNumber of threads in thread pool for BACKUP running a task.
BackupsThreadsScheduledNumber of queued or active jobs for BACKUP.
BcryptCacheBytesTotal size of the bcrypt authentication cache in bytes
BcryptCacheSizeTotal number of entries in the bcrypt authentication cache
BlobCopierThreadsNumber of threads in the thread pool of the object storage disk background replication process
BlobCopierThreadsActiveNumber of threads in the thread pool of the object storage disk background replication process running a task
BlobCopierThreadsScheduledNumber of queued or active tasks in the thread pool of the object storage disk background replication process
BlobKillerThreadsNumber of threads in the thread pool of the object storage disk background removal process
BlobKillerThreadsActiveNumber of threads in the thread pool of the object storage disk background removal process running a task
BlobKillerThreadsScheduledNumber of queued or active tasks in the thread pool of the object storage disk background removal process
BrokenDisksNumber of disks disks that were marked as broken during disk check.
BrokenDistributedBytesToInsertNumber of bytes for asynchronous insertion into Distributed tables that has been marked as broken. Number of bytes for every shard is summed.
BrokenDistributedFilesToInsertNumber of files for asynchronous insertion into Distributed tables that has been marked as broken. Number of files for every shard is summed.
BuildVectorSimilarityIndexThreadsNumber of threads in the build vector similarity index thread pool.
BuildVectorSimilarityIndexThreadsActiveNumber of threads in the build vector similarity index thread pool running a task.
BuildVectorSimilarityIndexThreadsScheduledNumber of queued or active jobs in the build vector similarity index thread pool.
CacheDetachedFileSegmentsNumber of existing detached cache file segments
CacheDictionaryThreadsNumber of threads in the CacheDictionary thread pool.
CacheDictionaryThreadsActiveNumber of threads in the CacheDictionary thread pool running a task.
CacheDictionaryThreadsScheduledNumber of queued or active jobs in the CacheDictionary thread pool.
CacheDictionaryUpdateQueueBatchesNumber of 'batches' (a set of keys) in update queue in CacheDictionaries.
CacheDictionaryUpdateQueueKeysExact number of keys in update queue in CacheDictionaries.
CacheFileSegmentsNumber of existing cache file segments
CacheWarmerBytesInProgressTotal size of remote file segments waiting to be asynchronously loaded into filesystem cache.
ColumnsDescriptionsCacheSizeSize of ColumnsDescriptions cache (per-table cache)
CompiledExpressionCacheBytesTotal bytes used for the cache of JIT-compiled code
CompiledExpressionCacheCountTotal entries in the cache of JIT-compiled code
CompressingNumber of compress operations using internal compression codecs
CompressionThreadNumber of threads in compression thread pools.
CompressionThreadActiveNumber of threads in compression thread pools running a task.
CompressionThreadScheduledNumber of queued or active jobs in compression thread pools.
ConcurrencyControlAcquiredTotal number of acquired CPU slots
ConcurrencyControlAcquiredNonCompetingTotal number of acquired CPU slots that are not considered competing (the first thread if fair_round_robin scheduler is in use)
ConcurrencyControlPreemptedTotal number of preempted threads waiting for CPU slot
ConcurrencyControlScheduledTotal number of CPU slot requests are being scheduled currently
ConcurrencyControlSoftLimitValue of soft limit on number of CPU slots
ConcurrentHashJoinPoolThreadsNumber of threads in the thread pool for concurrent hash join.
ConcurrentHashJoinPoolThreadsActiveNumber of threads in the thread pool for concurrent hash join running a task.
ConcurrentHashJoinPoolThreadsScheduledNumber of queued or active jobs in the thread pool for concurrent hash join.
ConcurrentQueryAcquiredTotal number of acquired query slots
ConcurrentQueryScheduledTotal number of query slot requests are being scheduled currently
ContextLockWaitNumber of threads waiting for lock in Context. This is global lock.
CoordinatedMergesCoordinatorAssignedMergesNumber of assigned merges in merge coordinator state.
CoordinatedMergesCoordinatorRunningMergesNumber of running merges visible for merge coordinator.
CoordinatedMergesWorkerAssignedMergesNumber of assigned merges in merge worker state.
CreatedTimersInQueryProfilerNumber of Created thread local timers in QueryProfiler
DDLWorkerThreadsNumber of threads in the DDLWorker thread pool for ON CLUSTER queries.
DDLWorkerThreadsActiveNumber of threads in the DDLWORKER thread pool for ON CLUSTER queries running a task.
DDLWorkerThreadsScheduledNumber of queued or active jobs in the DDLWORKER thread pool for ON CLUSTER queries.
DNSAddressesCacheBytesSize of the DNS addresses cache in bytes
DNSAddressesCacheSizeNumber of cached DNS addresses
DNSHostsCacheBytesSize of the DNS hosts cache in bytes
DNSHostsCacheSizeNumber of cached DNS hosts
DatabaseBackupThreadsNumber of threads in the DatabaseBackup thread pool.
DatabaseBackupThreadsActiveNumber of threads in the DatabaseBackup thread pool running a task.
DatabaseBackupThreadsScheduledNumber of queued or active jobs in the DatabaseBackup thread pool.
DatabaseCatalogThreadsNumber of threads in the DatabaseCatalog thread pool.
DatabaseCatalogThreadsActiveNumber of threads in the DatabaseCatalog thread pool running a task.
DatabaseCatalogThreadsScheduledNumber of queued or active jobs in the DatabaseCatalog thread pool.
DatabaseOnDiskThreadsNumber of threads in the DatabaseOnDisk thread pool.
DatabaseOnDiskThreadsActiveNumber of threads in the DatabaseOnDisk thread pool running a task.
DatabaseOnDiskThreadsScheduledNumber of queued or active jobs in the DatabaseOnDisk thread pool.
DatabaseReplicatedCreateTablesThreadsNumber of threads in the threadpool for table creation in DatabaseReplicated.
DatabaseReplicatedCreateTablesThreadsActiveNumber of active threads in the threadpool for table creation in DatabaseReplicated.
DatabaseReplicatedCreateTablesThreadsScheduledNumber of queued or active jobs in the threadpool for table creation in DatabaseReplicated.
DecompressingNumber of decompress operations using internal compression codecs
DelayedInsertsNumber of INSERT queries that are throttled due to high number of active data parts for partition in a MergeTree table.
DeltaLakeSnapshotCacheSizeElementsSize in elements of DeltaLake snapshot cache.
DestroyAggregatesThreadsNumber of threads in the thread pool for destroy aggregate states.
DestroyAggregatesThreadsActiveNumber of threads in the thread pool for destroy aggregate states running a task.
DestroyAggregatesThreadsScheduledNumber of queued or active jobs in the thread pool for destroy aggregate states.
DictCacheRequestsNumber of requests in fly to data sources of dictionaries of cache type.
DiskConnectionsStoredTotal count of sessions stored in the session pool for disks
DiskConnectionsTotalTotal count of all sessions: stored in the pool and actively used right now for disks
DiskObjectStorageAsyncThreadsObsolete metric, shows nothing.
DiskObjectStorageAsyncThreadsActiveObsolete metric, shows nothing.
DiskPlainRewritableAzureDirectoryMapSizeNumber of local-to-remote path entries in the 'plain_rewritable' in-memory map for AzureObjectStorage.
DiskPlainRewritableAzureFileCountNumber of file entries in the 'plain_rewritable' in-memory map for AzureObjectStorage.
DiskPlainRewritableLocalDirectoryMapSizeNumber of local-to-remote path entries in the 'plain_rewritable' in-memory map for LocalObjectStorage.
DiskPlainRewritableLocalFileCountNumber of file entries in the 'plain_rewritable' in-memory map for LocalObjectStorage.
DiskPlainRewritableS3DirectoryMapSizeNumber of local-to-remote path entries in the 'plain_rewritable' in-memory map for S3ObjectStorage.
DiskPlainRewritableS3FileCountNumber of file entries in the 'plain_rewritable' in-memory map for S3ObjectStorage.
DiskS3NoSuchKeyErrorsThe number of NoSuchKey errors that occur when reading data from S3 cloud storage through ClickHouse disks.
DiskSpaceReservedForMergeDisk space reserved for currently running background merges. It is slightly more than the total size of currently merging parts.
DistrCacheAllocatedConnectionsNumber of currently allocated connections to Distributed Cache connection pool
DistrCacheBorrowedConnectionsNumber of currently borrowed connections to Distributed Cache connection pool
DistrCacheOpenedConnectionsNumber of open connections to Distributed Cache
DistrCacheReadBuffersNumber of distributed cache read buffers
DistrCacheReadRequestsNumber of executed Read requests to Distributed Cache
DistrCacheRegisteredServersNumber of distributed cache registered servers
DistrCacheRegisteredServersCurrentAZNumber of distributed cache registered servers in current az
DistrCacheServerConnectionsNumber of open connections to ClickHouse server from Distributed Cache
DistrCacheServerRegistryConnectionsNumber of active connections to ClickHouse server from Distributed Cache (not marked as cancelled because of limit)
DistrCacheServerS3CachedClientsNumber of distributed cache S3 cached clients
DistrCacheSharedLimitCountNumber of opened connections according to DistributedCache::ConnectionPool::SharedLimit
DistrCacheUsedConnectionsNumber of currently used connections to Distributed Cache
DistrCacheWriteBuffersNumber of distributed cache write buffers
DistrCacheWriteRequestsNumber of executed Write requests to Distributed Cache
DistributedBytesToInsertNumber of pending bytes to process for asynchronous insertion into Distributed tables. Number of bytes for every shard is summed.
DistributedFilesToInsertNumber of pending files to process for asynchronous insertion into Distributed tables. Number of files for every shard is summed.
DistributedIndexAnalysisThreadsNumber of threads in the thread pool for distributed index analysis.
DistributedIndexAnalysisThreadsActiveNumber of threads in the thread pool for distributed index analysis running a task.
DistributedIndexAnalysisThreadsScheduledNumber of queued or active jobs in the distributed idnex analysis thread pool.
DistributedInsertThreadsNumber of threads used for INSERT into Distributed.
DistributedInsertThreadsActiveNumber of threads used for INSERT into Distributed running a task.
DistributedInsertThreadsScheduledNumber of queued or active jobs used for INSERT into Distributed.
DistributedSendNumber of connections to remote servers sending data that was INSERTed into Distributed tables. Both synchronous and asynchronous mode.
DropDistributedCacheThreadsNumber of threads in the threadpool for drop distributed cache query.
DropDistributedCacheThreadsActiveNumber of active threads in the threadpool for drop distributed cache query.
DropDistributedCacheThreadsScheduledNumber of queued or active jobs in the threadpool for drop distributed cache.
EphemeralNodeNumber of ephemeral nodes hold in ZooKeeper.
FilesystemCacheDelayedCleanupElementsFilesystem cache elements in background cleanup queue
FilesystemCacheDownloadQueueElementsFilesystem cache elements in download queue
FilesystemCacheElementsFilesystem cache elements (file segments)
FilesystemCacheHoldFileSegmentsFilesystem cache file segment which are currently hold as unreleasable
FilesystemCacheKeysNumber of keys in filesystem cache
FilesystemCacheReadBuffersNumber of active cache buffers
FilesystemCacheReserveThreadsThreads number trying to reserve space in cache
FilesystemCacheSizeFilesystem cache size in bytes
FilesystemCacheSizeLimitFilesystem cache size limit in bytes
FilteringMarksWithPrimaryKeyNumber of threads currently doing filtering of mark ranges by the primary key
FilteringMarksWithSecondaryKeysNumber of threads currently doing filtering of mark ranges by secondary keys
FormatParsingThreadsNumber of threads in the thread pool used for parsing input.
FormatParsingThreadsActiveNumber of threads in the thread pool used for parsing input running a task.
FormatParsingThreadsScheduledNumber of queued or active jobs in the thread pool used for parsing input.
FreezePartThreadsNumber of threads in the threadpool for freezing data parts.
FreezePartThreadsActiveNumber of active threads in the threadpool for freezing data parts.
FreezePartThreadsScheduledNumber of queued or active jobs in the threadpool for freezing data parts.
GlobalThreadNumber of threads in global thread pool.
GlobalThreadActiveNumber of threads in global thread pool running a task.
GlobalThreadScheduledNumber of queued or active jobs in global thread pool.
HTTPConnectionNumber of connections to HTTP server
HTTPConnectionsStoredTotal count of sessions stored in the session pool for http hosts
HTTPConnectionsTotalTotal count of all sessions: stored in the pool and actively used right now for http hosts
HashedDictionaryThreadsNumber of threads in the HashedDictionary thread pool.
HashedDictionaryThreadsActiveNumber of threads in the HashedDictionary thread pool running a task.
HashedDictionaryThreadsScheduledNumber of queued or active jobs in the HashedDictionary thread pool.
HiveFilesCacheBytesSize of the hive cache in bytes
HiveFilesCacheFilesNumber of cached files in the hive cache
HiveMetadataFilesCacheBytesSize of the hive metadata cache in bytes
HiveMetadataFilesCacheFilesNumber of cached files in the hive metadata cache
IDiskCopierThreadsNumber of threads for copying data between disks of different types.
IDiskCopierThreadsActiveNumber of threads for copying data between disks of different types running a task.
IDiskCopierThreadsScheduledNumber of queued or active jobs for copying data between disks of different types.
IOPrefetchThreadsNumber of threads in the IO prefetch thread pool.
IOPrefetchThreadsActiveNumber of threads in the IO prefetch thread pool running a task.
IOPrefetchThreadsScheduledNumber of queued or active jobs in the IO prefetch thread pool.
IOThreadsNumber of threads in the IO thread pool.
IOThreadsActiveNumber of threads in the IO thread pool running a task.
IOThreadsScheduledNumber of queued or active jobs in the IO thread pool.
IOUringInFlightEventsNumber of io_uring SQEs in flight
IOUringPendingEventsNumber of io_uring SQEs waiting to be submitted
IOWriterThreadsNumber of threads in the IO writer thread pool.
IOWriterThreadsActiveNumber of threads in the IO writer thread pool running a task.
IOWriterThreadsScheduledNumber of queued or active jobs in the IO writer thread pool.
IcebergCatalogThreadsNumber of threads in the IcebergCatalog thread pool.
IcebergCatalogThreadsActiveNumber of threads in the IcebergCatalog thread pool running a task.
IcebergCatalogThreadsScheduledNumber of queued or active jobs in the IcebergCatalog thread pool.
IcebergMetadataFilesCacheBytesSize of the Iceberg metadata cache in bytes
IcebergMetadataFilesCacheFilesNumber of cached files in the Iceberg metadata cache
IndexMarkCacheBytesTotal size of mark cache for secondary indices in bytes
IndexMarkCacheFilesTotal number of mark files cached in the mark cache for secondary indices
IndexUncompressedCacheBytesTotal size of uncompressed cache in bytes for secondary indices. Uncompressed cache does not usually improve the performance and should be mostly avoided
IndexUncompressedCacheCellsTotal number of entries in the uncompressed cache for secondary indices. Each entry represents a decompressed block of data. Uncompressed cache does not usually improve performance and should be mostly avoided
InterserverConnectionNumber of connections from other replicas to fetch parts
IsServerShuttingDownIndicates if the server is shutting down: 0 = no, 1 = yes
KafkaAssignedPartitionsNumber of partitions Kafka tables currently assigned to
KafkaBackgroundReadsNumber of background reads currently working (populating materialized views from Kafka)
KafkaConsumersNumber of active Kafka consumers
KafkaConsumersInUseNumber of consumers which are currently used by direct or background reads
KafkaConsumersWithAssignmentNumber of active Kafka consumers which have some partitions assigned.
KafkaLibrdkafkaThreadsNumber of active librdkafka threads
KafkaProducersNumber of active Kafka producer created
KafkaWritesNumber of currently running inserts to Kafka
KeeperAliveConnectionsNumber of alive connections
KeeperOutstandingRequestsNumber of outstanding requests
LicenseRemainingSecondsRemaining seconds of the license validity period.
LocalThreadObsolete. Number of threads in local thread pools. The threads in local thread pools are taken from the global thread pool.
LocalThreadActiveObsolete. Number of threads in local thread pools running a task.
LocalThreadScheduledObsolete. Number of queued or active jobs in local thread pools.
MMapCacheCellsThe number of files opened with mmap (mapped in memory). This is used for queries with the setting local_filesystem_read_method set to mmap. The files opened with mmap are kept in the cache to avoid costly TLB flushes.
MMappedFileBytesSum size of mmapped file regions.
MMappedFilesTotal number of mmapped files.
MarkCacheBytesTotal size of mark cache in bytes
MarkCacheFilesTotal number of mark files cached in the mark cache
MarksLoaderThreadsNumber of threads in thread pool for loading marks.
MarksLoaderThreadsActiveNumber of threads in the thread pool for loading marks running a task.
MarksLoaderThreadsScheduledNumber of queued or active jobs in the thread pool for loading marks.
MaxAllocatedEphemeralLockSequentialNumberThe maximum sequential number allocated for ephemeral lock znodes in ZooKeeper. Primarily influenced by the block numbers.
MaxDDLEntryIDMax processed DDL entry of DDLWorker.
MaxPushedDDLEntryIDMax DDL entry of DDLWorker that pushed to zookeeper.
MemoryTrackingTotal amount of memory (bytes) allocated by the server.
MemoryTrackingUncorrectedTotal amount of memory (bytes) allocated by the server not corrected by RSS.
MergeNumber of executing background merges
MergeJoinBlocksCacheBytesTotal bytes used for cached blocks in MergeJoin
MergeJoinBlocksCacheCountTotal cached blocks in MergeJoin
MergePartsNumber of source parts participating in current background merges
MergeTreeAllRangesAnnouncementsSentThe current number of announcement being sent in flight from the remote server to the initiator server about the set of data parts (for MergeTree tables). Measured on the remote server side.
MergeTreeBackgroundExecutorThreadsNumber of threads in the MergeTreeBackgroundExecutor thread pool.
MergeTreeBackgroundExecutorThreadsActiveNumber of threads in the MergeTreeBackgroundExecutor thread pool running a task.
MergeTreeBackgroundExecutorThreadsScheduledNumber of queued or active jobs in the MergeTreeBackgroundExecutor thread pool.
MergeTreeDataSelectExecutorThreadsNumber of threads in the MergeTreeDataSelectExecutor thread pool.
MergeTreeDataSelectExecutorThreadsActiveNumber of threads in the MergeTreeDataSelectExecutor thread pool running a task.
MergeTreeDataSelectExecutorThreadsScheduledNumber of queued or active jobs in the MergeTreeDataSelectExecutor thread pool.
MergeTreeFetchPartitionThreadsNumber of threads for ALTER TABLE FETCH PARTITION
MergeTreeFetchPartitionThreadsActiveNumber of threads for ALTER TABLE FETCH PARTITION fetching part
MergeTreeFetchPartitionThreadsScheduledNumber of queued or active part fetches in ALTER TABLE FETCH PARTITION
MergeTreeOutdatedPartsLoaderThreadsNumber of threads in the threadpool for loading Outdated data parts.
MergeTreeOutdatedPartsLoaderThreadsActiveNumber of active threads in the threadpool for loading Outdated data parts.
MergeTreeOutdatedPartsLoaderThreadsScheduledNumber of queued or active jobs in the threadpool for loading Outdated data parts.
MergeTreePartsCleanerThreadsNumber of threads in the MergeTree parts cleaner thread pool.
MergeTreePartsCleanerThreadsActiveNumber of threads in the MergeTree parts cleaner thread pool running a task.
MergeTreePartsCleanerThreadsScheduledNumber of queued or active jobs in the MergeTree parts cleaner thread pool.
MergeTreePartsLoaderThreadsNumber of threads in the MergeTree parts loader thread pool.
MergeTreePartsLoaderThreadsActiveNumber of threads in the MergeTree parts loader thread pool running a task.
MergeTreePartsLoaderThreadsScheduledNumber of queued or active jobs in the MergeTree parts loader thread pool.
MergeTreeReadTaskRequestsSentThe current number of callback requests in flight from the remote server back to the initiator server to choose the read task (for MergeTree tables). Measured on the remote server side.
MergeTreeSnapshotCommitThreadsNumber of threads used to commit snapshot
MergeTreeSnapshotCommitThreadsActiveNumber of active threads used to commit snapshot
MergeTreeSnapshotCommitThreadsScheduledNumber of scheduled threads used to commit snapshot
MergeTreeSubcolumnsReaderThreadsNumber of threads in the thread pool used for subcolumns reading in MergeTree.
MergeTreeSubcolumnsReaderThreadsActiveNumber of threads in the thread pool used for subcolumns reading in MergeTree running a task.
MergeTreeSubcolumnsReaderThreadsScheduledNumber of queued or active jobs in the thread pool used for subcolumns reading in MergeTree.
MergeTreeUnexpectedPartsLoaderThreadsNumber of threads in the threadpool for loading Unexpected data parts.
MergeTreeUnexpectedPartsLoaderThreadsActiveNumber of active threads in the threadpool for loading Unexpected data parts.
MergeTreeUnexpectedPartsLoaderThreadsScheduledNumber of queued or active jobs in the threadpool for loading Unexpected data parts.
MergesMutationsMemoryTrackingTotal amount of memory (bytes) allocated by background tasks (merges and mutations).
MetadataFromKeeperCacheObjectsNumber of objects in disk metadata cache.
MoveNumber of currently executing moves
MySQLConnectionNumber of client connections using MySQL protocol
NamedCollectionNumber of named collections
NetworkReceiveNumber of threads receiving data from network. Only ClickHouse-related network interaction is included, not by 3rd party libraries.
NetworkSendNumber of threads sending data to network. Only ClickHouse-related network interaction is included, not by 3rd party libraries.
ObjectStorageAzureThreadsNumber of threads in the AzureObjectStorage thread pool.
ObjectStorageAzureThreadsActiveNumber of threads in the AzureObjectStorage thread pool running a task.
ObjectStorageAzureThreadsScheduledNumber of queued or active jobs in the AzureObjectStorage thread pool.
ObjectStorageQueueMetadataCacheSizeBytesSize in bytes of ObjectStorageQueue metadata cache.
ObjectStorageQueueMetadataCacheSizeElementsSize in elements of ObjectStorageQueue metadata cache.
ObjectStorageQueueRegisteredServersNumber of registered servers in StorageS3(Azure)Queue
ObjectStorageQueueShutdownThreadsNumber of threads in object storage queue shutdown pool.
ObjectStorageQueueShutdownThreadsActiveNumber of threads in object storage queue shutdown pool running a task.
ObjectStorageQueueShutdownThreadsScheduledNumber of queued or active jobs in object storage queue shutdown pool.
ObjectStorageS3ThreadsNumber of threads in the S3ObjectStorage thread pool.
ObjectStorageS3ThreadsActiveNumber of threads in the S3ObjectStorage thread pool running a task.
ObjectStorageS3ThreadsScheduledNumber of queued or active jobs in the S3ObjectStorage thread pool.
OpenFileForReadNumber of files open for reading
OpenFileForWriteNumber of files open for writing
OutdatedPartsLoadingThreadsNumber of threads in the threadpool for loading Outdated data parts.
OutdatedPartsLoadingThreadsActiveNumber of active threads in the threadpool for loading Outdated data parts.
OutdatedPartsLoadingThreadsScheduledNumber of queued or active jobs in the threadpool for loading Outdated data parts.
PageCacheBytesTotal size of userspace page cache in bytes
PageCacheCellsTotal number of entries in the userspace page cache
ParallelCompressedWriteBufferThreadsNumber of threads in all instances of ParallelCompressedWriteBuffer - these threads are doing parallel compression and writing
ParallelCompressedWriteBufferWaitNumber of threads in all instances of ParallelCompressedWriteBuffer that are currently waiting for buffer to become available for writing
ParallelFormattingOutputFormatThreadsNumber of threads in the ParallelFormattingOutputFormatThreads thread pool.
ParallelFormattingOutputFormatThreadsActiveNumber of threads in the ParallelFormattingOutputFormatThreads thread pool running a task.
ParallelFormattingOutputFormatThreadsScheduledNumber of queued or active jobs in the ParallelFormattingOutputFormatThreads thread pool.
ParallelWithQueryActiveThreadsNumber of active threads in the threadpool for processing PARALLEL WITH queries.
ParallelWithQueryScheduledThreadsNumber of queued or active jobs in the threadpool for processing PARALLEL WITH queries.
ParallelWithQueryThreadsNumber of threads in the threadpool for processing PARALLEL WITH queries.
ParquetEncoderThreadsNumber of threads in ParquetBlockOutputFormat thread pool.
ParquetEncoderThreadsActiveNumber of threads in ParquetBlockOutputFormat thread pool running a task.
ParquetEncoderThreadsScheduledNumber of queued or active jobs in ParquetBlockOutputFormat thread pool.
ParquetMetadataCacheBytesSize of the Parquet metadata cache in bytes
ParquetMetadataCacheFilesNumber of cached files in the Parquet metadata cache
PartMutationNumber of mutations (ALTER DELETE/UPDATE)
PartsActiveActive data part, used by current and upcoming SELECTs.
PartsCommittedDeprecated. See PartsActive.
PartsCompactCompact parts.
PartsDeleteOnDestroyPart was moved to another disk and should be deleted in own destructor.
PartsDeletingNot active data part with identity refcounter, it is deleting right now by a cleaner.
PartsOutdatedNot active data part, but could be used by only current SELECTs, could be deleted after SELECTs finishes.
PartsPreActiveThe part is in data_parts, but not used for SELECTs.
PartsPreCommittedDeprecated. See PartsPreActive.
PartsTemporaryThe part is generating now, it is not in data_parts list.
PartsWideWide parts.
PendingAsyncInsertNumber of asynchronous inserts that are waiting for flush.
PolygonDictionaryThreadsNumber of threads in the threadpool for polygon dictionaries.
PolygonDictionaryThreadsActiveNumber of active threads in the threadpool for polygon dictionaries.
PolygonDictionaryThreadsScheduledNumber of queued or active jobs in the threadpool for polygon dictionaries.
PostgreSQLConnectionNumber of client connections using PostgreSQL protocol
PrimaryIndexCacheBytesTotal size of primary index cache in bytes
PrimaryIndexCacheFilesTotal number of index files cached in the primary index cache
QueryNumber of executing queries
QueryCacheBytesTotal size of the query cache in bytes
QueryCacheEntriesTotal number of entries in the query cache
QueryConditionCacheBytesTotal size of the query condition cache in bytes
QueryConditionCacheEntriesTotal number of entries in the query condition cache
QueryNonInternalNumber of executing non-internal queries (queries initiated by users, excluding internal queries from ClickHouse)
QueryPipelineExecutorThreadsNumber of threads in the PipelineExecutor thread pool.
QueryPipelineExecutorThreadsActiveNumber of threads in the PipelineExecutor thread pool running a task.
QueryPipelineExecutorThreadsScheduledNumber of queued or active jobs in the PipelineExecutor thread pool.
QueryPreemptedNumber of running tasks which are paused and waiting due to 'priority' setting.
QueryThreadNumber of query processing threads
RWLockActiveReadersNumber of threads holding read lock in a table RWLock.
RWLockActiveWritersNumber of threads holding write lock in a table RWLock.
RWLockWaitingReadersNumber of threads waiting for read on a table RWLock.
RWLockWaitingWritersNumber of threads waiting for write on a table RWLock.
ReadNumber of read (read, pread, io_getevents, etc.) syscalls in fly
ReadTaskRequestsSentThe current number of callback requests in flight from the remote server back to the initiator server to choose the read task (for s3Cluster table function and similar). Measured on the remote server side.
ReadonlyDisksNumber of disks that were marked as readonly during disk check.
ReadonlyReplicaNumber of Replicated tables that are currently in readonly state due to re-initialization after ZooKeeper session loss or due to startup without ZooKeeper configured.
RefreshableViewsNumber materialized views with periodic refreshing (REFRESH)
RefreshingViewsNumber of materialized views currently executing a refresh
RemoteReadNumber of read with remote reader in fly
ReplicaReadyIndicates if the replica is ready for queries: 0 = no, 1 = yes
ReplicatedChecksNumber of data parts checking for consistency
ReplicatedFetchNumber of data parts being fetched from replica
ReplicatedSendNumber of data parts being sent to replicas
RestartReplicaThreadsNumber of threads in the RESTART REPLICA thread pool.
RestartReplicaThreadsActiveNumber of threads in the RESTART REPLICA thread pool running a task.
RestartReplicaThreadsScheduledNumber of queued or active jobs in the RESTART REPLICA thread pool.
RestoreThreadsNumber of threads in the thread pool for RESTORE.
RestoreThreadsActiveNumber of threads in the thread pool for RESTORE running a task.
RestoreThreadsScheduledNumber of queued or active jobs for RESTORE.
RevisionRevision of the server. It is a number incremented for every release or release candidate except patch releases.
S3CachedCredentialsProvidersTotal number of cached credentials providers
S3RequestsS3 requests count
SchedulerIOReadScheduledNumber of IO reads are being scheduled currently
SchedulerIOWriteScheduledNumber of IO writes are being scheduled currently
SendExternalTablesNumber of connections that are sending data for external tables to remote servers. External tables are used to implement GLOBAL IN and GLOBAL JOIN operators with distributed subqueries.
SendScalarsNumber of connections that are sending data for scalars to remote servers.
SharedCatalogDropDetachLocalTablesErrorsNumber of errors that occurred when attempting to drop or detach local tables in Shared Catalog.
SharedCatalogDropLocalThreadsNumber of threads in the threadpool for drop of local tables in Shared Catalog.
SharedCatalogDropLocalThreadsActiveNumber of active threads in the threadpool for drop of local tables in Shared Catalog.
SharedCatalogDropLocalThreadsScheduledNumber of queued or active jobs in the threadpool for drop of local tables in Shared Catalog.
SharedCatalogDropZooKeeperThreadsNumber of threads in the threadpool for drop of object in ZooKeeper in Shared Catalog.
SharedCatalogDropZooKeeperThreadsActiveNumber of active threads in the threadpool for drop of object in ZooKeeper in Shared Catalog.
SharedCatalogDropZooKeeperThreadsScheduledNumber of queued or active jobs in the threadpool for drop of object in ZooKeeper in Shared Catalog.
SharedCatalogNumberOfObjectsInStateNumber of objects in the current state of Shared Catalog.
SharedCatalogStateApplicationThreadsNumber of threads in the threadpool for state application in Shared Catalog.
SharedCatalogStateApplicationThreadsActiveNumber of active threads in the threadpool for state application in Shared Catalog.
SharedCatalogStateApplicationThreadsScheduledNumber of queued or active jobs in the threadpool for state application in Shared Catalog.
SharedDatabaseCatalogTablesInLocalDropDetachQueueNumber of tables in the queue for local drop or detach in Shared Catalog.
SharedMergeTreeAssignedCurrentPartsNumber of parts locked by merge or mutation
SharedMergeTreeBrokenCondemnedPartsInKeeperHow many broken condemned part records stored in keeper
SharedMergeTreeCondemnedPartsInKeeperHow many condemned part records stored in keeper
SharedMergeTreeFetchNumber of fetches in progress
SharedMergeTreeMaxActiveReplicasThe maximum number of active replicas registered in Keeper
SharedMergeTreeMaxInactiveReplicasThe maximum number of inactive replicas registered in Keeper
SharedMergeTreeMaxPartitionsThe maximum number of partitions registered in Keeper across all SharedMergeTree tables
SharedMergeTreeMaxReplicasThe maximum number of replicas registered in Keeper across all tables. Note it might not be a sum of SharedMergeTreeMaxActiveReplicas and SharedMergeTreeMaxInactiveReplicas
SharedMergeTreeMinActiveReplicasThe minimum number of active replicas registered in Keeper
SharedMergeTreeMinInactiveReplicasThe minimum number of inactive replicas registered in Keeper
SharedMergeTreeMinPartitionsThe minimum number of partitions registered in Keeper across all SharedMergeTree tables
SharedMergeTreeMinReplicasThe minimum number of replicas registered in Keeper across all tables. Note it might not be a sum of SharedMergeTreeMinActiveReplicas and SharedMergeTreeMinInactiveReplicas
SharedMergeTreeOutdatedPartsInKeeperHow many outdated part records stored in keeper
SharedMergeTreeThreadsNumber of threads in the thread pools in internals of SharedMergeTree
SharedMergeTreeThreadsActiveNumber of threads in the thread pools in internals of SharedMergeTree running a task
SharedMergeTreeThreadsScheduledNumber of queued or active threads in the thread pools in internals of SharedMergeTree
StartupScriptsExecutionStateState of startup scripts execution: 0 = not finished, 1 = success, 2 = failure.
StartupSystemTablesThreadsNumber of threads in the StartupSystemTables thread pool.
StartupSystemTablesThreadsActiveNumber of threads in the StartupSystemTables thread pool running a task.
StartupSystemTablesThreadsScheduledNumber of queued or active jobs in the StartupSystemTables thread pool.
StatelessWorkerThreadsNumber of threads in the stateless worker thread pool.
StatelessWorkerThreadsActiveNumber of threads in the stateless worker thread pool running a task.
StatelessWorkerThreadsScheduledNumber of queued or active jobs in the stateless worker thread pool.
StorageBufferBytesNumber of bytes in buffers of Buffer tables
StorageBufferFlushThreadsNumber of threads for background flushes in StorageBuffer
StorageBufferFlushThreadsActiveNumber of threads for background flushes in StorageBuffer running a task
StorageBufferFlushThreadsScheduledNumber of queued or active threads for background flushes in StorageBuffer
StorageBufferRowsNumber of rows in buffers of Buffer tables
StorageConnectionsStoredTotal count of sessions stored in the session pool for storages
StorageConnectionsTotalTotal count of all sessions: stored in the pool and actively used right now for storages
StorageDistributedThreadsNumber of threads in the StorageDistributed thread pool.
StorageDistributedThreadsActiveNumber of threads in the StorageDistributed thread pool running a task.
StorageDistributedThreadsScheduledNumber of queued or active jobs in the StorageDistributed thread pool.
StorageHiveThreadsNumber of threads in the StorageHive thread pool.
StorageHiveThreadsActiveNumber of threads in the StorageHive thread pool running a task.
StorageHiveThreadsScheduledNumber of queued or active jobs in the StorageHive thread pool.
StorageObjectStorageThreadsNumber of threads in the remote table engines thread pools.
StorageObjectStorageThreadsActiveNumber of threads in the remote table engines thread pool running a task.
StorageObjectStorageThreadsScheduledNumber of queued or active jobs in remote table engines thread pool.
StorageS3ThreadsNumber of threads in the StorageS3 thread pool.
StorageS3ThreadsActiveNumber of threads in the StorageS3 thread pool running a task.
StorageS3ThreadsScheduledNumber of queued or active jobs in the StorageS3 thread pool.
SystemDatabaseReplicasThreadsNumber of threads in the system.database_replicas thread pool.
SystemDatabaseReplicasThreadsActiveNumber of threads in the system.database_replicas thread pool running a task.
SystemDatabaseReplicasThreadsScheduledNumber of queued or active jobs in the system.database_replicas thread pool.
SystemReplicasThreadsNumber of threads in the system.replicas thread pool.
SystemReplicasThreadsActiveNumber of threads in the system.replicas thread pool running a task.
SystemReplicasThreadsScheduledNumber of queued or active jobs in the system.replicas thread pool.
TCPConnectionNumber of connections to TCP server (clients with native interface), also included server-server distributed query connections
TablesLoaderBackgroundThreadsNumber of threads in the tables loader background thread pool.
TablesLoaderBackgroundThreadsActiveNumber of threads in the tables loader background thread pool running a task.
TablesLoaderBackgroundThreadsScheduledNumber of queued or active jobs in the tables loader background thread pool.
TablesLoaderForegroundThreadsNumber of threads in the tables loader foreground thread pool.
TablesLoaderForegroundThreadsActiveNumber of threads in the tables loader foreground thread pool running a task.
TablesLoaderForegroundThreadsScheduledNumber of queued or active jobs in the tables loader foreground thread pool.
TablesToDropQueueSizeNumber of dropped tables, that are waiting for background data removal.
TaskTrackerThreadsNumber of threads used by the distributed query remote task tracker.
TaskTrackerThreadsActiveNumber of threads in the distributed query remote task tracker thread pool running a task.
TaskTrackerThreadsScheduledNumber of queued or active jobs in the distributed query remote task tracker thread pool.
TemporaryFilesForAggregationNumber of temporary files created for external aggregation
TemporaryFilesForJoinNumber of temporary files created for JOIN
TemporaryFilesForMergeNumber of temporary files for vertical merge
TemporaryFilesForSortNumber of temporary files created for external sorting
TemporaryFilesUnknownNumber of temporary files created without known purpose
TextIndexHeaderCacheBytesSize of the text index header cache in bytes
TextIndexHeaderCacheCellsNumber of entries in text index header cache
TextIndexPostingsCacheBytesSize of the text index posting lists cache in bytes
TextIndexPostingsCacheCellsNumber of entries in the text index posting lists cache
TextIndexTokensCacheBytesSize of the text index tokens cache in bytes
TextIndexTokensCacheCellsNumber of entries in the text index tokens cache
ThreadPoolFSReaderThreadsNumber of threads in the thread pool for local_filesystem_read_method=threadpool.
ThreadPoolFSReaderThreadsActiveNumber of threads in the thread pool for local_filesystem_read_method=threadpool running a task.
ThreadPoolFSReaderThreadsScheduledNumber of queued or active jobs in the thread pool for local_filesystem_read_method=threadpool.
ThreadPoolRemoteFSReaderThreadsNumber of threads in the thread pool for remote_filesystem_read_method=threadpool.
ThreadPoolRemoteFSReaderThreadsActiveNumber of threads in the thread pool for remote_filesystem_read_method=threadpool running a task.
ThreadPoolRemoteFSReaderThreadsScheduledNumber of queued or active jobs in the thread pool for remote_filesystem_read_method=threadpool.
ThreadsInOvercommitTrackerNumber of waiting threads inside of OvercommitTracker
TotalTemporaryFilesNumber of temporary files created
UncompressedCacheBytesTotal size of uncompressed cache in bytes. Uncompressed cache does not usually improve the performance and should be mostly avoided
UncompressedCacheCellsTotal number of entries in the uncompressed cache. Each entry represents a decompressed block of data. Uncompressed cache does not usually improve performance and should be mostly avoided
VectorSimilarityIndexCacheBytesSize of the vector similarity index cache in bytes
VectorSimilarityIndexCacheCellsNumber of entries in the vector similarity index cache
VersionIntegerVersion of the server in a single integer number in base-1000. For example, version 11.22.33 is translated to 11022033.
WriteNumber of write (write, pwrite, io_getevents, etc.) syscalls in fly
ZooKeeperConnectionLossStartedTimestampSecondsUnix timestamp in seconds when ZooKeeper connection was lost, or 0 if connected successfully.
ZooKeeperRequestNumber of requests to ZooKeeper in fly.
ZooKeeperSessionNumber of sessions (connections) to ZooKeeper. Should be no more than one, because using more than one connection to ZooKeeper may lead to bugs due to lack of linearizability (stale reads) that ZooKeeper consistency model allows.
ZooKeeperSessionExpiredNumber of expired global ZooKeeper sessions.
ZooKeeperWatchNumber of watches (event subscriptions) in ZooKeeper.

See Also