resource-manager: add billing RU metric by keyspace RU version
Open
type/development
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 783
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 36
Description
## Enhancement Task
Add a Prometheus-only billing RU metric in resource manager.
The metric should:
- expose billing RU totals without sending them to metering
- switch the billing formula dynamically by each keyspace's `ru_version`
- use `RRU + WRU + SQL RU` for v1 keyspaces
- use `TiKV RU v2 + TiDB RU v2 + TiFlash RU v2` for v2 keyspaces
- follow the existing RU v1/v2 metric naming and collection flow
Contributor guide
Assessment
This issue has not been assessed yet.