> ## 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 ingest metrics from a Prometheus instance

Observability supports receiving data in the Prometheus `remote_write` format. To start sending metrics from a [Prometheus instance](https://prometheus.io/docs/concepts/jobs_instances/), update its configuration.

## 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 `editor` role within your tenant; for example, the default `editors` 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 `editors`.

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 later in the configuration steps.

## How to configure the instance

1. Add the `remote_write` section to the Prometheus configuration file:

   ```yaml theme={null}
   global:
     scrape_interval: 15s
     evaluation_interval: 15s

   ...
   # Your current scrape configuration
   ...

   remote_write:
   - url: "https://write.monitoring.<region_ID>.nebius.cloud/projects/<project_ID>/prometheus/api/v1/write"
     authorization:
       type: Bearer
       credentials: "<token_value>"
   ```

   In this configuration, specify the following values:

   * Region ID from the [region list](../../../overview/regions).

   * [Project ID](/iam/manage-projects#how-to-get-a-project-id).

   * Token value of the static key that you [got earlier](#prerequisites).

2. Restart your Prometheus instance or [reload its configuration](https://prometheus.io/docs/prometheus/latest/getting_started/#reloading-configuration).

Now, Prometheus writes metrics from your Prometheus instance to Observability Metrics.
