mirror of https://github.com/tikv/pd.git
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> |
||
|---|---|---|
| .. | ||
| labeler.go | ||
| labeler_test.go | ||
| metrics.go | ||
| rule_test.go | ||
| rules.go | ||