Metrics/Grafana Cloud

Add Grafana Cloud (Mimir) metrics integration

Changed on

Add a Grafana Cloud 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 your Grafana Cloud stack with Prometheus remote write.

To find your credentials, sign in to the Grafana Cloud Portal, open your stack, find the Prometheus tile and click Send Metrics. The API token needs the metrics:write scope.

The endpoint must be the remote write URL in the format https://prometheus-prod-<region>.grafana.net/api/prom/push.

See the Grafana Cloud metrics setup guide for setup details and supported metrics.

post/integrations/metrics/grafana

Request

  • Base URL
    https://api.cloudamqp.com/api
  • URL
    https://api.cloudamqp.com/api/integrations/metrics/grafana
  • Auth
    HTTP basic

Request body application/x-www-form-urlencoded

endpointstring required

Grafana Cloud Prometheus remote write URL

instance_idstring required

Your numeric Grafana Cloud Prometheus instance ID, used as username

api_tokenstring required

Grafana Cloud API token with metrics push permissions

tagsstring

(Optional) Enter tags like env=prod,region=europe

metrics_filterstring[]

(Optional) Metrics to include in the integration export. When omitted, the default metric set is used.

Example request

{
  "endpoint": "https://prometheus-prod-01-eu-west-0.grafana.net/api/prom/push",
  "instance_id": "123456",
  "api_token": "glc_eyJ..."
}

Response

Integration created successfully

idinteger

Created integration ID

Example response

{
  "id": 10
}

Changes

    • breaking

      removed the success response with the status

    • info

      added the new optional request property

    • info

      added the non-success response with the status

    • info

      added the success response with the status

    • info

      endpoint added