@@ -760,6 +760,8 @@ class TTabletMon {
760
760
TCounterPtr DatashardSizeBytes;
761
761
TCounterPtr ResourcesStorageUsedBytes;
762
762
TCounterPtr ResourcesStorageLimitBytes;
763
+ TCounterPtr ResourcesStorageTableUsedBytes;
764
+ TCounterPtr ResourcesStorageTopicUsedBytes;
763
765
TCounterPtr ResourcesStreamUsedShards;
764
766
TCounterPtr ResourcesStreamLimitShards;
765
767
// TCounterPtr ResourcesStreamUsedShardsPercents;
@@ -786,6 +788,7 @@ class TTabletMon {
786
788
THistogramPtr ConsumedCpuHistogram;
787
789
788
790
TCounterPtr DiskSpaceTablesTotalBytes;
791
+ TCounterPtr DiskSpaceTopicsTotalBytes;
789
792
TCounterPtr DiskSpaceSoftQuotaBytes;
790
793
791
794
TCounterPtr StreamShardsCount;
@@ -827,6 +830,10 @@ class TTabletMon {
827
830
" resources.storage.used_bytes" , false );
828
831
ResourcesStorageLimitBytes = ydbGroup->GetNamedCounter (" name" ,
829
832
" resources.storage.limit_bytes" , false );
833
+ ResourcesStorageTableUsedBytes = ydbGroup->GetNamedCounter (" name" ,
834
+ " resources.storage.table.used_bytes" , false );
835
+ ResourcesStorageTopicUsedBytes = ydbGroup->GetNamedCounter (" name" ,
836
+ " resources.storage.topic.used_bytes" , false );
830
837
831
838
ResourcesStreamUsedShards = ydbGroup->GetNamedCounter (" name" ,
832
839
" resources.stream.used_shards" , false );
@@ -879,14 +886,14 @@ class TTabletMon {
879
886
auto appGroup = schemeshardGroup->GetSubgroup (" category" , " app" );
880
887
881
888
DiskSpaceTablesTotalBytes = appGroup->GetCounter (" SUM(SchemeShard/DiskSpaceTablesTotalBytes)" );
889
+ DiskSpaceTopicsTotalBytes = appGroup->GetCounter (" SUM(SchemeShard/DiskSpaceTopicsTotalBytes)" );
882
890
DiskSpaceSoftQuotaBytes = appGroup->GetCounter (" SUM(SchemeShard/DiskSpaceSoftQuotaBytes)" );
883
891
884
892
StreamShardsCount = appGroup->GetCounter (" SUM(SchemeShard/StreamShardsCount)" );
885
893
StreamShardsQuota = appGroup->GetCounter (" SUM(SchemeShard/StreamShardsQuota)" );
886
894
StreamReservedThroughput = appGroup->GetCounter (" SUM(SchemeShard/StreamReservedThroughput)" );
887
895
StreamReservedStorage = appGroup->GetCounter (" SUM(SchemeShard/StreamReservedStorage)" );
888
896
StreamReservedStorageLimit = appGroup->GetCounter (" SUM(SchemeShard/StreamReservedStorageQuota)" );
889
-
890
897
}
891
898
}
892
899
@@ -911,8 +918,11 @@ class TTabletMon {
911
918
}
912
919
913
920
if (DiskSpaceTablesTotalBytes) {
914
- ResourcesStorageUsedBytes->Set (DiskSpaceTablesTotalBytes->Val ());
915
921
ResourcesStorageLimitBytes->Set (DiskSpaceSoftQuotaBytes->Val ());
922
+ ResourcesStorageTableUsedBytes->Set (DiskSpaceTablesTotalBytes->Val ());
923
+ ResourcesStorageTopicUsedBytes->Set (DiskSpaceTopicsTotalBytes->Val ());
924
+
925
+ ResourcesStorageUsedBytes->Set (ResourcesStorageTableUsedBytes->Val () + ResourcesStorageTopicUsedBytes->Val ());
916
926
917
927
auto quota = StreamShardsQuota->Val ();
918
928
ResourcesStreamUsedShards->Set (StreamShardsCount->Val ());
0 commit comments