> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to view traces in Grafana®

To view distributed traces that you [ingest](./ingest) from applications in your Managed Service for Kubernetes® clusters, connect Grafana to Nebius AI Cloud and explore the traces using the Tempo data source.

## Prerequisites

1. [Install](/cli/install) and [configure](/cli/configure) Nebius AI Cloud CLI.

2. If you don’t have a service account for observability services, [create one](/iam/service-accounts/manage).

3. Make sure that the service account is in a [group](/iam/authorization/groups) that has at least the `viewer` role within your tenant; for example, the default `viewers` group. You can check this in the [Administration → IAM](https://console.nebius.com/iam/service-accounts) section of the web console.

   If the service account is not in the required group, click <Icon icon="https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/button-vellipsis.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=e80b8e57c43bfd117679262e6a1334ad" width="12" height="24" data-path="_assets/button-vellipsis.svg" /> → **Add to group**, and select `viewers`.

4. Issue a [static key](/iam/authorization/static-keys) for the service account using the following command:

   ```bash theme={null}
   nebius iam static-key issue \
     --name <name_for_the_key> \
     --account-service-account-id <service_account_ID> \
     --service=OBSERVABILITY
   ```

   Copy the value of the static key from the `token` parameter of the response. You will need it on later steps.

## How to connect Grafana

Use one of these ways:

<Tabs>
  <Tab title="Install Nebius application">
    Install the [Grafana solution by Nebius](https://console.nebius.com/applications/overview/nebius/grafana-solution-by-nebius), an application for Managed Service for Kubernetes. The application is configured to view traces.
  </Tab>

  <Tab title="Connect a data source in Grafana">
    1. Make sure that you have Grafana available, in any of these ways:

       * [Install Grafana on your local machine](https://grafana.com/docs/grafana/latest/setup-grafana/installation/).
       * [Create an account in Grafana Cloud](https://grafana.com/auth/sign-up/create-user).

    2. Open Grafana in your browser.

    3. In the side menu, select **Connections** → **Data sources**.

    4. In the top right corner, click **Add new data source**.

    5. Select **Tempo**.

    6. In the Tempo configuration, enter the following settings:

       * **Connection** → **URL**: `https://read.tracing.api.nebius.cloud/projects/<project_ID>/tempo`.

         In the URL, specify your [project ID](/iam/manage-projects#how-to-get-a-project-id).

       * **Authentication** → **HTTP headers**: click **Add header** and enter `Authorization` with the value `Bearer <STATIC_TOKEN>`, where `<STATIC_TOKEN>` is the static key that you [got earlier](#prerequisites).

    7. Click **Save and test**. If Tempo is connected successfully, you should see a success message.
  </Tab>
</Tabs>

## How to explore traces

After connecting Grafana, you can explore traces:

1. In the side menu, select **Explore**.
2. Select the **Tempo** data source.
3. Use the query builder to search for traces by service name, operation, duration, or other attributes.

You can also view traces using Grafana's TraceQL query language. For more information, see [TraceQL implementation by Nebius AI Cloud](./query-language).

***

*The Grafana Labs Marks are trademarks of Grafana Labs, and are used with Grafana Labs' permission. We are not affiliated with, endorsed or sponsored by Grafana Labs or its affiliates.*
