Path

Create your access policy token on the Agent Observability setup screen with the sigil:write and OTLP write scopes, and store it once it is shown.

Estimated time: 2 min

Create the access policy and token

The third value the SDK needs, so it can send your agent’s data to your Grafana Cloud stack, is a Grafana Cloud Access Policy Token. You set it later as AGENTO11Y_AUTH_TOKEN. You create it on the same Your credentials panel of the setup screen where you copied the API URL and Instance ID, so you don’t leave the setup screen or build an access policy by hand. The token carries four scopes: sigil:write for generations, plus metrics:write, traces:write, and logs:write, so the same token also serves traces and metrics in Milestone 7.

Create the token on the setup screen and save it.

  1. Go back to the Your credentials panel on the Agent Observability setup screen, the same panel where you copied the API URL and Instance ID.

  2. On the API token row of Your credentials:

    • Optional: before you create the token, click Customize token to set a token name or an expiry date. The token is otherwise non-expiring, unless your organization requires one.
    • Click Create token. The app creates a Grafana Cloud Access Policy Token already scoped with sigil:write, metrics:write, traces:write, and logs:write, so you don’t pick the scopes yourself.
    • Copy the token now with the copy button and save it somewhere you can find it later, such as a notes file. You enter it as AGENTO11Y_AUTH_TOKEN in the next milestone. Tokens start with glc_.
    • The token is shown only once, until you reload the page. Store it securely, for example in a secret manager. If you lose it, create another token.

Your token is created with the four scopes and saved for later.