pd/pkg/schedule/labeler
JmPotato 0b32e6e185
feat(metering): add storage size metering and keyspace name caching (#9774)
ref tikv/pd#9707

- Introduced storage size metering:  
  - Added `storageSizeCollector` to periodically record row-based and column-based storage usage per keyspace.  
  - Integrated with cluster metering writer for reporting.  
- Extended `RegionInfo` and statistics with `ApproximateColumnarKvSize` tracking.  
- Added keyspace name caching and lookup in `KeyspaceManager` for efficient resolution.  
- Extracted common metering utilities (`NewRUValue`, `NewBytesValue`, constants for source/fields) into `pkg/metering/utils.go`.

Signed-off-by: JmPotato <github@ipotato.me>
2025-09-25 10:38:55 +00:00
..
labeler.go feat(metering): add storage size metering and keyspace name caching (#9774) 2025-09-25 10:38:55 +00:00
labeler_test.go
metrics.go
rule_test.go
rules.go