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

# Prometheus remote_write

> 直接替代 Prometheus remote_write 目标。

```http theme={null}
POST /api/v1/prometheus/api/v1/write
```

接受 Prometheus / VictoriaMetrics remote\_write（snappy + protobuf）。成功返回 `204`。
每条时间序列的 `__name__` label 选择对应指标流，剩余 label 成为字段，样本写入 `value`。
Bearer 主体需要 `streams.write`。

<RequestExample>
  ```yaml prometheus.yml theme={null}
  remote_write:
    - url: http://localhost:5080/api/v1/prometheus/api/v1/write
      authorization:
        credentials: "${MS_JWT}"
  ```
</RequestExample>
