tikv / tikv/pd

resource-manager: add billing RU metric by keyspace RU version

Open
#10,481 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.