Cloudwatch integration with xmatters

411 Views Asked by At

I want to integrate cloudwatch with xmatters. I know I can use xmatters integration agent to integrate xmatters with other apps but how to access cloudwatch alarms. Is there any JAVA API which I can use to access cloudwatch alarms and then redirect it to xmatters.

Thanks

2

There are 2 best solutions below

0
On

Yes, there have Java API for retrieve CloudWatch alarms and history. API Ref.

I guess you want the alert notify to XMatters when that happened. The CloudWatch alarms mechanism is base on SNS service. So, my redirect to outside web service approach step is:

  1. Implement AWS Lambda function for send message to outside web service. Use node.js send REST post is pretty easy, or you can use Java too.
  2. Create SNS Topic and add the Lambda subscription for it.
  3. Create a CloudWatch alarm to above SNS Topic.

The message pass path is CloudWatch alarm -> SNS -> Lambda -> outside service.

Good Luck!

0
On

(Shameless plug) I wrote an article on how to setup an integration to CloudWatch. Check it out here