Logs/Grafana Cloud

Add Grafana Cloud (Loki) log integration

Changed on

Add a Grafana Cloud (Loki) log integration.

Broker logs are exported via OTLP to your Grafana Cloud stack.

To find your credentials, sign in to the Grafana Cloud Portal, open your stack, find the OpenTelemetry tile and click Configure.

The endpoint must be the OTLP gateway URL in the format https://otlp-gateway-prod-<region>.grafana.net/otlp.

post/integrations/logs/grafana

Request

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

Request body application/x-www-form-urlencoded

endpointstring required

Grafana Cloud OTLP gateway URL

instance_idstring required

Your numeric Grafana Cloud instance ID

api_tokenstring required

Grafana Cloud API token with metrics push permissions

Example request

{
  "endpoint": "https://otlp-gateway-prod-us-central-0.grafana.net/otlp",
  "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 non-success response with the status

    • info

      added the success response with the status