API - Managing integrations

This API is only available for customer that have created the instances through our Customer page. If you signed up via a provider, you can find your API key and documentation in the CloudAMQP Console.

Enter your API key here to update the examples with it
Enter your instance id here to update the examples with it

List log integrations

GET https://customer.cloudamqp.com/api/instances/:id/integrations/logs

Example:

curl https://YOUR_APIKEY@customer.cloudamqp.com/api/instances/1234/integrations/logs

[{"id":10,"type":"papertrail","config":{"url":"logs.papaptail.com:2123"},"error":null,"account_id":"99e56d10-f986-48b0-9e02-2f535ff67ab5"}]

List metric integrations

GET https://customer.cloudamqp.com/api/instances/:id/integrations/metrics

Example:

curl https://YOUR_APIKEY@customer.cloudamqp.com/api/instances/1234/integrations/metrics

[{"id":10,"type":"datadog","config":{"api_key":"mykey"},"error":null,"account_id":"99e56d10-f986-48b0-9e02-2f535ff67ab5"}]

Create log integration

POST https://customer.cloudamqp.com/api/instances/:id/integrations/logs/:type
URL Parameters
  • type:  papertrail, loggly, logentries, splunk
Papertrail
  • url
Loggly
  • token
Logentries
  • token
Splunk
  • token
  • host_port

Example:

curl -XPOST -H "Content-Type: application/json" \
  -d '{
    "token": "my_splunk_token",
    "host_port": "input-prd-p-rdq96mdbptj4.cloud.splunk.com:8080",
  }'
  https://YOUR_APIKEY@customer.cloudamqp.com/api/instances/1234/integrations/logs/splunk

Create metrics integration

POST https://customer.cloudamqp.com/api/instances/:id/integrations/metrics/:type
URL Parameters
  • type:  cloudwatch, librato, datadog, new-relic
CloudWatch
  • region
  • access_key_id
  • secret_access_key
Librato
  • email
  • api_key
DataDog
  • api_key
NewRelic
  • license_key

Example:

curl -XPOST -H "Content-Type: application/json" \
  -d '{
    "region": "us-east-1",
    "access_key_id": "my_access_key",
    "secret_access_key": "my_secret_access_key",
  }'
  https://YOUR_APIKEY@customer.cloudamqp.com/api/instances/1234/integrations/metrics/cloudwatch

Delete log integration

DELETE https://customer.cloudamqp.com/api/instances/:id/integrations/logs/:id
URL Parameters
  • id

Example:

curl -XDELETE https://YOUR_APIKEY@customer.cloudamqp.com/api/instances/1234/integrations/logs/10

Delete metrics integration

DELETE https://customer.cloudamqp.com/api/instances/:id/integrations/metrics/:id
URL Parameters
  • id

Example:

curl -XDELETE https://YOUR_APIKEY@customer.cloudamqp.com/api/instances/1234/integrations/metrics/10