Metrics/Stackdriver

Add Stackdriver metrics integration

Changed on

Add a Stackdriver metrics integration (legacy).

Credentials are the individual fields from a GCP service account JSON key file, do not upload the raw JSON file.

We recommend using Stackdriver for new integrations, which exports Prometheus metrics.

post/integrations/metrics/stackdriver

Request

  • Base URL
    https://api.cloudamqp.com/api
  • URL
    https://api.cloudamqp.com/api/integrations/metrics/stackdriver
  • 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

queue_regexstring

(Optional) Allowlist to filter queues using regular expression

vhost_regexstring

(Optional) Allowlist to filter vhost using regular expression

include_ad_queuesboolean

(Optional) Include auto-delete queues (default false)

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 non-success response with the status

    • info

      added the success response with the status