---
title: "Add Prometheus Remote Write metrics integration"
method: POST
path: "/integrations/metrics/prometheus_remote_write"
tags: ["Metrics/Prometheus Remote Write"]
---

# Add Prometheus Remote Write metrics integration

`POST /integrations/metrics/prometheus_remote_write`

Add a Prometheus Remote Write metrics integration (Prometheus-based).

Available on all LavinMQ clusters and RabbitMQ clusters running version 3.10.0 or later.

Broker and server metrics are pushed to any Prometheus remote write endpoint. Works with
self-hosted Mimir, Thanos and VictoriaMetrics.

For Grafana Cloud, use the dedicated Grafana Cloud metrics integration instead.

The endpoint must be an HTTPS URL including the remote write path, for example `/api/v1/push` for Mimir, `/api/v1/receive` for Thanos or `/api/v1/write` for VictoriaMetrics.

See the [Prometheus Remote Write metrics setup guide](https://www.cloudamqp.com/docs/monitoring_metrics_prometheus_remote_write.html) for setup details and supported metrics.

## Response `201`

Integration created successfully

- IntegrationIdResponse
  - `id` integer — Created integration ID

## Other responses

- `400` — Validation failed

## Changes

- **2026-09-07** `07eae6b15469` — 5 info
  - added the new optional request property `client_id`
  - added the new optional request property `client_secret`
  - added the new optional request property `scopes`
  - added the new optional request property `token_url`
  - …1 more
- **2026-09-03** `064cf050bff5` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/cloudamqp/apis/cloudamqp-instance-api/changes/integrations/metrics/prometheus_remote_write/post.md)

---

[API](https://skmtc.dev/cloudamqp/apis/cloudamqp-instance-api.md) · [All operations](https://skmtc.dev/cloudamqp/apis/cloudamqp-instance-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cloudamqp/apis/cloudamqp-instance-api/revisions/f85517416755?raw)
