diff --git a/src/components/MemoryViewer/MemoryViewer.scss b/src/components/MemoryViewer/MemoryViewer.scss index 57e52380a..46fea9b01 100644 --- a/src/components/MemoryViewer/MemoryViewer.scss +++ b/src/components/MemoryViewer/MemoryViewer.scss @@ -3,6 +3,9 @@ $memory-type-colors: ( 'SharedCacheConsumption': var(--g-color-base-info-medium-hover), 'MemTableConsumption': var(--g-color-base-warning-medium-hover), 'QueryExecutionConsumption': var(--g-color-base-positive-medium-hover), + 'ColumnTablesReadExecutionConsumption': var(--g-color-base-danger-light), + 'ColumnTablesCompactionConsumption': var(--g-color-base-danger-medium), + 'ColumnTablesCacheConsumption': var(--g-color-base-danger-heavy), 'Other': var(--g-color-base-generic-medium-hover), ); diff --git a/src/components/MemoryViewer/i18n/en.json b/src/components/MemoryViewer/i18n/en.json index 4f51efc6b..f83016591 100644 --- a/src/components/MemoryViewer/i18n/en.json +++ b/src/components/MemoryViewer/i18n/en.json @@ -4,6 +4,9 @@ "text_shared-cache": "Shared Cache", "text_memtable": "MemTable", "text_query-execution": "Query Execution", + "text_column-tables-read-execution": "Column Tables Read Execution", + "text_column-tables-compaction": "Column Tables Compaction", + "text_column-tables-cache": "Column Tables Cache", "text_usage": "Usage", "text_soft-limit": "Soft Limit", "text_hard-limit": "Hard Limit", diff --git a/src/components/MemoryViewer/utils.ts b/src/components/MemoryViewer/utils.ts index dc8bed1c3..06a36bf58 100644 --- a/src/components/MemoryViewer/utils.ts +++ b/src/components/MemoryViewer/utils.ts @@ -44,6 +44,27 @@ export function getMemorySegments(stats: TMemoryStats, memoryUsage: number): Mem capacity: getMaybeNumber(stats.MemTableLimit), isInfo: false, }, + { + label: i18n('text_column-tables-read-execution'), + key: 'ColumnTablesReadExecutionConsumption', + value: getMaybeNumber(stats.ColumnTablesReadExecutionConsumption), + capacity: getMaybeNumber(stats.ColumnTablesReadExecutionLimit), + isInfo: false, + }, + { + label: i18n('text_column-tables-compaction'), + key: 'ColumnTablesCompactionConsumption', + value: getMaybeNumber(stats.ColumnTablesCompactionConsumption), + capacity: getMaybeNumber(stats.ColumnTablesCompactionLimit), + isInfo: false, + }, + { + label: i18n('text_column-tables-cache'), + key: 'ColumnTablesCacheConsumption', + value: getMaybeNumber(stats.ColumnTablesCacheConsumption), + capacity: getMaybeNumber(stats.ColumnTablesCacheLimit), + isInfo: false, + }, { label: i18n('text_allocator-caches'), key: 'AllocatorCachesMemory', diff --git a/src/types/api/nodes.ts b/src/types/api/nodes.ts index 2afee29df..a1cf2c4a3 100644 --- a/src/types/api/nodes.ts +++ b/src/types/api/nodes.ts @@ -89,6 +89,15 @@ export interface TMemoryStats { QueryExecutionConsumption?: string; QueryExecutionLimit?: string; + ColumnTablesReadExecutionConsumption?: string; + ColumnTablesReadExecutionLimit?: string; + + ColumnTablesCompactionConsumption?: string; + ColumnTablesCompactionLimit?: string; + + ColumnTablesCacheConsumption?: string; + ColumnTablesCacheLimit?: string; + HardLimit?: string; SoftLimit?: string; }