Section 3 · Enable Agent Observability

The three values the SDK needs, why it needs each one, and the Grafana Cloud page each comes from.

Estimated time: 1 min

What the SDK needs from Grafana Cloud

You need three values to send conversation data: an Agent Observability endpoint URL, an instance ID, and a credential from Grafana Cloud. Each value tells the SDK something it needs to deliver your data.

Why the SDK needs each value

ValueWhy the SDK needs itUse as
Endpoint URLWhere to send generation data. Your Agent Observability API address.AGENTO11Y_ENDPOINT
Instance IDWhich Grafana Cloud stack the data belongs to. A numeric Grafana Cloud stack ID. Each stack’s data is fully separated from the data of other stacks.AGENTO11Y_AUTH_TENANT_ID
CredentialThe actual secret used to authenticate an action.AGENTO11Y_AUTH_TOKEN

Where the values come from

API URL and Instance ID come from the setup screen in Agent Observability. The credential comes from the Grafana Cloud access policy page.

Note

To send OpenTelemetry metrics and traces directly to Grafana Cloud, you also need an OTLP endpoint URL, the address OpenTelemetry exporters send metrics and traces to, and an OTLP instance ID, which you copy from the OpenTelemetry card, one block on the Grafana Cloud portal, your stack’s page at https://grafana.com/orgs/<org>/stacks/<stack-id>. The setup screen in Agent Observability shows the same OTLP endpoint.