Metrics/Stackdriver v2

Add Stackdriver v2 metrics integration

Changed on

Add a Stackdriver v2 metrics integration (Prometheus-based).

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

See the Stackdriver metrics setup guide for setup details and supported metrics.

post/integrations/metrics/stackdriver_v2

Request

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

Request body application/x-www-form-urlencoded

type'service_account'

Service account credential type. Defaults to service_account if omitted.

project_idstring required

GCP project ID, from the service account JSON key file.

client_emailstring required

Service account email address, from the service account JSON key file

private_keystring textarea required

Service account private key, from the service account JSON key file

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

{
  "project_id": "my-gcp-project",
  "client_email": "metrics-publisher@my-gcp-project.iam.gserviceaccount.com",
  "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQ...\n-----END PRIVATE KEY-----\n"
}

Response

Integration created successfully

idinteger

Created integration ID

Example response

{
  "id": 10
}

Changes

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • breaking

      removed the success response with the status

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the non-success response with the status

    • info

      added the success response with the status