Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/MemoryViewer/MemoryViewer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ $memory-type-colors: (
'AllocatorCachesMemory': var(--g-color-base-danger-medium),
'SharedCacheConsumption': var(--g-color-base-info-medium),
'MemTableConsumption': var(--g-color-base-warning-medium),
'CompactionConsumption': var(--g-color-base-danger-medium),
'QueryExecutionConsumption': var(--g-color-base-positive-medium),
'Other': var(--g-color-base-neutral-medium),
);
Expand Down
1 change: 1 addition & 0 deletions src/components/MemoryViewer/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"text_shared-cache": "Shared Cache",
"text_memtable": "MemTable",
"text_query-execution": "Query Execution",
"text_compaction": "Compaction",
"text_usage": "Usage",
"text_soft-limit": "Soft Limit",
"text_hard-limit": "Hard Limit",
Expand Down
7 changes: 7 additions & 0 deletions src/components/MemoryViewer/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ export function getMemorySegments(stats: TMemoryStats, memoryUsage: number): Mem
capacity: getMaybeNumber(stats.MemTableLimit),
isInfo: false,
},
{
label: i18n('text_compaction'),
key: 'CompactionConsumption',
value: getMaybeNumber(stats.CompactionConsumption),
capacity: getMaybeNumber(stats.CompactionLimit),
isInfo: false,
},
{
label: i18n('text_allocator-caches'),
key: 'AllocatorCachesMemory',
Expand Down
3 changes: 3 additions & 0 deletions src/types/api/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ export interface TMemoryStats {
QueryExecutionConsumption?: string;
QueryExecutionLimit?: string;

CompactionConsumption?: string;
CompactionLimit?: string;

HardLimit?: string;
SoftLimit?: string;
}
Expand Down
Loading