If the NoPermission error message appears when a RAM user views the monitoring data in the Tablestore console, grant the RAM user the required permissions on Cloud Monitor.
Problem description
The NoPermission error message appears when I view the instance monitoring data or table monitoring data in the Tablestore console as a RAM user.
Possible cause
The RAM user is not granted the required permissions to view Cloud Monitor.
Solution
Log on to the RAM console by using your Alibaba Cloud account, and grant the RAM user the AliyunCloudMonitorFullAccess or AliyunCloudMonitorReadOnlyAccess permission. The AliyunCloudMonitorFullAccess permission allows the RAM user to manage Cloud Monitor, and the AliyunCloudMonitorReadOnlyAccess permission allows the RAM user to access Cloud Monitor in the read-only mode. For more information, see Grant permissions to a RAM user.
You can configure a custom policy to grant the user the permissions only to view Tablestore monitoring data. For more information, see Create a custom policy on the JSON tab. The following sample code provides an example on how to configure a custom policy:
{
"Statement": [
{
"Action":"cms:Query*",
"Resource":"*",
"Effect":"Allow"
}
],
"Version":"1"
}