Skip to content

tidb-cloud: add Top RU user guide (web console, Premium + Essential)#22989

Open
huoyao1125 wants to merge 3 commits into
pingcap:release-8.5from
huoyao1125:huoyao1125/top-ru-web-console
Open

tidb-cloud: add Top RU user guide (web console, Premium + Essential)#22989
huoyao1125 wants to merge 3 commits into
pingcap:release-8.5from
huoyao1125:huoyao1125/top-ru-web-console

Conversation

@huoyao1125
Copy link
Copy Markdown

What is changed, added or deleted?

This PR adds a complete user guide for the Top RU feature in the TiDB Cloud web console, targeting both Premium and Essential product tiers.

Changes:

  • Add tidb-cloud/top-ru.md: full user-facing documentation for Top RU
  • Update TOC-tidb-cloud.md: add Top RU entry under Monitor and Alert

Why this PR

PR #22760 attempted to document Top RU but has several critical issues:

  1. Wrong product surface — placed the doc under Clinic, but Top RU is in the web console
  2. Essential tier completely missing
  3. Internal engineering perspective instead of user-facing content
  4. Key features missing: Rank by Users panel, Top N configs per tier, data retention, time range details, drill-down plan scenarios

This PR addresses all of the above. See issue #22988 for full details.

What this doc covers

  • Product tier comparison table (Premium vs Essential capabilities, Top N, data retention)
  • Step-by-step: how to open Top RU, set filters, read the SQL list, view RU trends
  • Premium-only: Rank by Users panel + Sliced by Users tab
  • Drill-down panel for SQL details: 3 scenarios based on plan count and availability
  • Typical investigation workflow
  • Limitations and FAQ

Which TiDB version(s) do your changes apply to?

  • master (the latest development version)
  • v8.5 (TiDB 8.5 versions)

What is the related PR or file link(s)?

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

@ti-chi-bot ti-chi-bot Bot added the first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. label Jun 1, 2026
@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Jun 1, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign jackysp for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added missing-translation-status This PR does not have translation status info. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 1, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new documentation page for the "Top RU" feature in TiDB Cloud, which ranks SQL statements by their Request Unit (RU) consumption, and updates the table of contents to include this new page. The review feedback focuses on improving the documentation's clarity, style, and consistency by suggesting active voice rewrites to replace passive constructions, refining terminology (such as using "left navigation pane" and "SQL statement"), correcting link targets, and clarifying specific steps in the workflow and limitations sections.

Comment thread tidb-cloud/top-ru.md
## Open Top RU

1. Log in to the [TiDB Cloud console](https://tidbcloud.com/) and navigate to your cluster.
2. In the left navigation, click **Monitoring** > **Top RU**.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

Use "left navigation pane" instead of "left navigation" to maintain terminology consistency with other monitoring documents in the repository.

Suggested change
2. In the left navigation, click **Monitoring** > **Top RU**.
2. In the left navigation pane, click **Monitoring** > **Top RU**.
References
  1. Use consistent terminology across the documentation. (link)

Comment thread tidb-cloud/top-ru.md Outdated
|---|---|
| SQL Statement | Normalized SQL template |
| Total RU | Total RU consumed by this SQL in the selected time range |
| RU Share % | Percentage of total cluster RU consumed by this SQL. The top N SQLs together account for less than 100%; adding the **Others** row gives 100%. |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

Use "SQL statement" and "SQL statements" instead of "SQL" and "SQLs" to be more precise and professional.

Suggested change
| RU Share % | Percentage of total cluster RU consumed by this SQL. The top N SQLs together account for less than 100%; adding the **Others** row gives 100%. |
| RU Share % | Percentage of total cluster RU consumed by this SQL statement. The top N SQL statements together account for less than 100%; adding the **Others** row gives 100%. |
References
  1. Use consistent terminology and avoid unnecessary words. (link)

Comment thread tidb-cloud/top-ru.md Outdated
| Total RU | Total RU consumed by this SQL in the selected time range |
| RU Share % | Percentage of total cluster RU consumed by this SQL. The top N SQLs together account for less than 100%; adding the **Others** row gives 100%. |
| Execution Count | Number of times this SQL was executed in the selected time range |
| User | Database user(s) that ran this SQL (Premium only). A single SQL digest may be executed by multiple users. |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

Rewrite the passive sentence "A single SQL digest may be executed by multiple users" to active voice to improve readability and adhere to the style guide.

Suggested change
| User | Database user(s) that ran this SQL (Premium only). A single SQL digest may be executed by multiple users. |
| User | Database user(s) that ran this SQL (Premium only). Multiple users can execute a single SQL digest. |
References
  1. Avoid passive voice overuse. (link)

Comment thread tidb-cloud/top-ru.md Outdated

### Rank by Users panel

The **Overview** tab includes a **Rank by Users** panel that shows a ranked list of database users by their total RU consumption for the selected time range. Use this to quickly determine whether the RU spike is driven by a specific user or application.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

Avoid passive voice ("is driven by") by rewriting the sentence to active voice.

Suggested change
The **Overview** tab includes a **Rank by Users** panel that shows a ranked list of database users by their total RU consumption for the selected time range. Use this to quickly determine whether the RU spike is driven by a specific user or application.
The **Overview** tab includes a **Rank by Users** panel that shows a ranked list of database users by their total RU consumption for the selected time range. Use this to quickly determine whether a specific user or application drives the RU spike.
References
  1. Avoid passive voice overuse. (link)

Comment thread tidb-cloud/top-ru.md
To drill into a specific user's SQL statements:

1. Click the **Sliced by Users** tab.
2. In the **User** filter, select the user you want to investigate. Up to 100 users are shown; users beyond 100 are grouped as **Other users**.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

Avoid passive voice ("are shown", "are grouped") by rewriting the sentence to active voice.

Suggested change
2. In the **User** filter, select the user you want to investigate. Up to 100 users are shown; users beyond 100 are grouped as **Other users**.
2. In the **User** filter, select the user you want to investigate. The filter displays up to 100 users and groups any additional users as **Other users**.
References
  1. Avoid passive voice overuse. (link)

Comment thread tidb-cloud/top-ru.md
- **Not equivalent to billing RU**: Top RU values are near-real-time observability data and do not match the billing RU in your TiDB Cloud invoice. Do not use Top RU for billing reconciliation or auditing.
- **TopN grouping**: SQL statements with lower RU may be grouped into **Others** rather than shown individually.
- **Data freshness**: 15 seconds.
- **Maximum query window**: 24 hours per time range selection.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

Clarify the maximum query window description by using a complete sentence.

Suggested change
- **Maximum query window**: 24 hours per time range selection.
- **Maximum query window**: The maximum time range you can select for a single query is 24 hours.

Comment thread tidb-cloud/top-ru.md Outdated
- **TopN grouping**: SQL statements with lower RU may be grouped into **Others** rather than shown individually.
- **Data freshness**: 15 seconds.
- **Maximum query window**: 24 hours per time range selection.
- **Essential limitations**: The Sliced by Users tab and Rank by Users panel are not available for Essential clusters.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

Bold the UI elements (Sliced by Users tab and Rank by Users panel) and use active voice.

Suggested change
- **Essential limitations**: The Sliced by Users tab and Rank by Users panel are not available for Essential clusters.
- **Essential limitations**: Essential clusters do not support the **Sliced by Users** tab and the **Rank by Users** panel.

Comment thread tidb-cloud/top-ru.md

### Why is there no data in Top RU?

- Make sure the selected time range contains actual SQL workload.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

Use "active SQL queries" instead of "actual SQL workload" for better clarity.

Suggested change
- Make sure the selected time range contains actual SQL workload.
- Make sure the selected time range contains active SQL queries.

Comment thread tidb-cloud/top-ru.md Outdated
### Why is there no data in Top RU?

- Make sure the selected time range contains actual SQL workload.
- Refresh the page after running workload for at least 15 seconds.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

Add "your" before "workload" to make the instruction more natural.

Suggested change
- Refresh the page after running workload for at least 15 seconds.
- Refresh the page after running your workload for at least 15 seconds.

Comment thread tidb-cloud/top-ru.md
- Refresh the page after running workload for at least 15 seconds.
- Check [TiDB Cloud Release Notes](/tidb-cloud/releases/tidb-cloud-release-notes.md) to confirm Top RU is available for your cluster version.

If the issue persists, contact [TiDB Cloud support](https://docs.pingcap.com/tidbcloud/tidb-cloud-support).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

Use a relative path to the support page instead of an absolute URL to maintain consistency with other documents in the repository.

Suggested change
If the issue persists, contact [TiDB Cloud support](https://docs.pingcap.com/tidbcloud/tidb-cloud-support).
If the issue persists, contact [TiDB Cloud Support](/tidb-cloud/tidb-cloud-support.md).

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Jun 1, 2026

@huoyao1125: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-verify 4402316 link true /test pull-verify

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. missing-translation-status This PR does not have translation status info. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant