> ## 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 Destination

> Export metrics via Prometheus Remote-Write from Sawmills. Configure endpoint URL, namespace prefix, external labels, headers, and batch size.

## Supported Data Types:

📈 **Metrics**

## Configuration

| Field | Type | Default | Required | Description |
| :- | :- | :- | :- | :- |
| Name | String | none | true | Unique identifier within Sawmills. |
| Endpoint | String | none | true | The target URL to send Prometheus data to. |
| Namespace | String | none | true | Prefix attached to each exported metric name. |

### Advanced Options

| Field | Type | Default | Required | Description |
| :- | :- | :- | :- | :- |
| **Additional Headers** | none | No | Additional headers attached to each HTTP request. | |
| **External Labels** | none | No | Map of labels names and values to be attached to each metric data point.. | |
| **Timeout (seconds)** | 30 | Yes | Seconds to wait per individual attempt to send data to a backend. | |
| **Max Batch Size (bytes)** | 3000000 | Yes | Maximum size of a batch of samples to be sent to the remote write endpoint. If the batch size is larger than this value, it will be split into multiple batches.. | |

> [!NOTE]
>
> Note the following headers cannot be changed: **Content-Encoding**, **Content-Type**, **X-Prometheus-Remote-Write-Version**, and **User-Agent**..
