Access tokens and permissions
Access tokens are used to authenticate and authorize API calls, ensuring that only authorized services can interact with your Dynatrace environment. In the context of Dynatrace Operator for Kubernetes, two types of tokens are typically used:
-
Operator token
The Operator token (former API token) is used by the Dynatrace Operator to manage settings and the lifecycle of all Dynatrace components in the Kubernetes cluster. -
Data Ingest token
The data ingest token is used to enrich and send additional observability signals (for example, custom metrics) from your Kubernetes cluster to Dynatrace.
Create token
Repeat the following steps for both the Operator and Data Ingest tokens.
- Go to Access Tokens.
- Select Generate new token.
- Provide a meaningful name for the token.
- Enable the required permissions for the token.
- For the Operator token, select the template in Template > Kubernetes: Dynatrace Operator. This will automatically add the required scopes (see Operator token)
- For the Data Ingest token, select the template in Template > Kubernetes: Data Ingest. This will automatically add the required scopes (see Data Ingest token)
- Select Generate token to create the token.
- Ensure to copy the token and store it in a secure place.
Token Scopes
Operator token
The Operator token requires the following scopes:
Installer download
)DataExport
)settings.read
)settings.write
)entities.read
)activeGateTokenManagement.create
)The token is rotated by Dynatrace Operator every 30 days. When an authentication token is rotated, the affected ActiveGate is automatically deleted and redeployed.
Data ingest token
Recommended token scopes:
metrics.ingest
)logs.ingest
)openTelemetryTrace.ingest
)