Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide history RU metrics record and query #5854

Closed
Tracked by #38825
JmPotato opened this issue Jan 12, 2023 · 1 comment
Closed
Tracked by #38825

Provide history RU metrics record and query #5854

JmPotato opened this issue Jan 12, 2023 · 1 comment
Labels
type/development The issue belongs to a development tasks

Comments

@JmPotato
Copy link
Member

Ref pingcap/tidb#38825.

It would be useful for a resource group to record and query its history RU metrics to get some info like:

{
    "request_unit":{
        "rru_per_sec":5000,
        "wru_per_sec":1000,
        "max_rru_per_sec":3850,
        "max_wru_per_sec":1210,
        "average_rru_per_sec":2645,
        "average_wru_per_sec":877,
        "total_actual_rru":22343244,
        "total_actual_wru":8842224,
        "total_requested_rru":22343244,
        "total_requested_wru":9898422,
        "total_dropped_rru":0,
        "total_dropped_wru":8750
    },
    "hw_resource":{
        "tikv_cpu_time":5000,
        "tikv_mem_max":5000,
        "tikv_disk_read_count":5000,
        "tikv_disk_read_bytes":5000,
        "tikv_disk_write_count":5000,
        "tikv_disk_write_bytes":5000,
        "tidb_cpu_time":5000
    }
}

This issue is used to track the related data process logic and API implementation.

@JmPotato JmPotato added the type/development The issue belongs to a development tasks label Jan 12, 2023
ti-chi-bot added a commit that referenced this issue Jan 18, 2023
ref #5854

Collect the resource group consumption info and use Prometheus to observe it.

Signed-off-by: JmPotato <[email protected]>

Co-authored-by: Ti Chi Robot <[email protected]>
@JmPotato
Copy link
Member Author

Close by pingcap/tidb#40922.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/development The issue belongs to a development tasks
Projects
None yet
Development

No branches or pull requests

1 participant