Managed Service for OpenTelemetry uses the AliyunServiceRoleForXtrace service-linked role to access other Alibaba Cloud services on your behalf. This Resource Access Management (RAM) role grants the minimum permissions required for monitoring features to function.
For general information about service-linked roles, see Service-linked roles.
When this role is used
Managed Service for OpenTelemetry monitors applications that span multiple Alibaba Cloud services. To collect the required data, it automatically creates and assumes the AliyunServiceRoleForXtrace role to access the following services:
| Service | Access scope |
|---|---|
| Container Service for Kubernetes (ACK) | Query cluster details, manage configurations, and retrieve logs |
| Simple Log Service (SLS) | Create and manage projects, Logstores, indexes, dashboards, and machine groups for trace data storage |
| Elastic Compute Service (ECS) | Describe instances, disks, security groups, and network interfaces; run Cloud Assistant commands for agent deployment |
| Virtual Private Cloud (VPC) | Describe VPCs, vSwitches, elastic IP addresses (EIPs), and gateways for network topology discovery |
| Server Load Balancer (SLB) | Describe load balancers, manage listener attributes, and configure access log settings |
Permissions
The following sections list the exact permissions granted to the AliyunServiceRoleForXtrace role, grouped by service.
Delete the AliyunServiceRoleForXtrace role
After you enable the monitoring feature, you can delete the AliyunServiceRoleForXtrace role if it is no longer needed. Deleting this role revokes all cross-service access permissions, which means Managed Service for OpenTelemetry can no longer store or display data for the current account. Proceed with caution.
Delete all Managed Service for OpenTelemetry applications in the current account before you delete the role. The deletion fails if any applications still exist.
Log on to the RAM console.
In the left-side navigation pane, choose .
On the Roles page, enter
AliyunServiceRoleForXtracein the search box.Click Delete Role in the Actions column.
In the Delete Role dialog box, enter the role name and click Delete Role.
FAQ
Why can't the system automatically create the AliyunServiceRoleForXtrace role for my RAM user?
Your RAM user lacks the ram:CreateServiceLinkedRole permission. Attach the following policy to your RAM user to grant this permission:
{
"Statement": [
{
"Action": [
"ram:CreateServiceLinkedRole"
],
"Resource": "acs:ram:*:<your-alibaba-cloud-account-id>:role/*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": [
"xtrace.aliyuncs.com"
]
}
}
}
],
"Version": "1"
}Replace <your-alibaba-cloud-account-id> with the ID of your Alibaba Cloud account.