Metrics/CloudWatch

Add CloudWatch v2 metrics integration

Changed on

Add a CloudWatch v2 metrics integration (legacy).

Provide either access keys OR IAM role parameters, not both.

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

post/integrations/metrics/cloudwatch_v2

Request

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

Request body application/x-www-form-urlencoded

regionstring required

AWS region

access_key_idstring

AWS access key ID (needs PutMetricData permission)

secret_access_keystring

AWS secret access key

iam_rolestring

AWS IAM role ARN with PutMetricData permission

iam_external_idstring

External identifier for IAM role (e.g., cloudamqp-abc123)

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

{
  "region": "us-west-1"
}

Response

Integration created successfully

idinteger

Created integration ID

Example response

{
  "id": 10
}

Changes

    • breaking

      the request property became required

    • breaking

      removed the success response with the status

    • info

      api tag Metrics/CloudWatch added

    • info

      api tag Metrics/CloudWatch v2 removed

    • info

      added the non-success response with the status

    • info

      added the success response with the status