Skip to content

Commit

Permalink
nodes-added-pdiskid-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
StekPerepolnen committed Apr 5, 2024
1 parent 77c6779 commit 802283c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ydb/core/viewer/json_tenantinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,16 @@ class TJsonTenantInfo : public TViewerPipeClient<TJsonTenantInfo> {
tenant.SetStorageAllocatedLimit(storageAllocatedLimit);
tenant.SetStorageMinAvailableSize(storageMinAvailableSize);
tenant.SetStorageGroups(storageGroups);

auto& ssdUsage = *tenant.AddStorageUsage();
ssdUsage.SetType(NKikimrViewer::TStorageUsage::SSD);
ssdUsage.SetSize(storageAllocatedSize);
ssdUsage.SetLimit(storageAllocatedLimit);
if (tenant.databasequotas().data_size_hard_quota() && tenant.GetMetrics().GetStorage()) {
ssdUsage.SetSize(tenant.GetMetrics().GetStorage());
ssdUsage.SetLimit(tenant.databasequotas().data_size_hard_quota());
} else {
ssdUsage.SetSize(storageAllocatedSize);
ssdUsage.SetLimit(storageAllocatedLimit);
}
// TODO(andrew-rykov)
auto& hddUsage = *tenant.AddStorageUsage();
hddUsage.SetType(NKikimrViewer::TStorageUsage::HDD);
Expand Down
2 changes: 2 additions & 0 deletions ydb/core/viewer/protos/viewer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ message TTenant {
uint64 StorageAllocatedLimit = 41;
Ydb.Cms.DatabaseQuotas DatabaseQuotas = 42;
repeated TStorageUsage StorageUsage = 43;
repeated TStorageUsage TabletStorage = 44;
repeated TStorageUsage BlobStorage = 45;
}

message TTenants {
Expand Down

0 comments on commit 802283c

Please sign in to comment.