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

resource_contorl: add privilege requirement for dashboard resouce control page #17773

Merged
merged 2 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dashboard/dashboard-resource-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ summary: 介绍如何使用 TiDB Dashboard 的资源管控页面查看资源管

可以通过[监控指标](#监控指标)中的 **CPU Usage** 选择合适的时间范围。

> **注意:**
>
> 要使用容量估算功能,当前登录用户需要拥有 `SUPER` 或 `RESOURCE_GROUP_ADMIN` 权限,并拥有部分系统表的访问权限。在使用此功能前,请确保当前用户已拥有这些权限,否则部分功能可能无法正常使用。详情请参考[容量预估的权限要求](/sql-statements/sql-statement-calibrate-resource.md#权限)。

## 监控指标

通过观察面板上的指标,可以了解当前集群整体的资源消耗状态。监控指标及其含义如下:
Expand Down
2 changes: 1 addition & 1 deletion sql-statements/sql-statement-calibrate-resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ TiDB 提供两种预估方式:

- [`tidb_enable_resource_control`](/system-variables.md#tidb_enable_resource_control-从-v660-版本开始引入) 需要处于开启状态
- 需要拥有 `SUPER` 或者 `RESOURCE_GROUP_ADMIN` 权限
- 需要拥有 `METRICS_SCHEMA` 库下所有表的 `SELECT` 权限
- [根据实际负载估算容量](#根据实际负载估算容量)功能需要拥有 `METRICS_SCHEMA` 库下所有表的 `SELECT` 权限

## 示例

Expand Down