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

# Prometheus Source

> Configure the Prometheus Remote-Write source in Sawmills to receive metrics data with optional X-Scope-OrgID header forwarding for multi-tenancy.

## Supported Data Types

📈 **Metrics**

## Configuration

| Field   | Type   | Required | Default Value      | Description                                                      |
| :------ | :----- | :------- | :----------------- | :--------------------------------------------------------------- |
| Name    | String | true     | none               | Unique identifier within Sawmills                                |
| Address | String | true     | `${env:MY_POD_IP}` | Address to which the Prometheus Remote-Write source should bind. |
| Port    | String | true     | 9090               | Port to which the Prometheus Remote-Write source should bind.    |

### Advanced Options

| Field                        | Type    | Default | Required | Description                                                                                                                            |   |
| :--------------------------- | :------ | :------ | :------- | :------------------------------------------------------------------------------------------------------------------------------------- | - |
| Forward X-Scope-OrgID Header | Boolean | true    | true     | When enabled, the incoming X-Scope-OrgID header is preserved. This is often required for multi-tenant authentication to work properly. |   |

<Note> The pod’s IP address is retrieved by defining an environment variable `MY_POD_IP` from the pod’s status field `status.podIP`. You can access this value using `${env:MY_POD_IP}` in your configuration to dynamically reference the pod’s IP at runtime. </Note>
