Search results for "{{ search.query }}"

No results found for "{{search.query}}". 
View All Results

Amazon CloudWatch Events Integration

Amazon CloudWatch Events helps you to respond to state changes in your AWS resources. When your resources change state they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a pre-determined schedule.

What does OpsGenie offer to Amazon CloudWatch Events users?

By using OpsGenie Amazon CloudWatch Events Integration, you can forward Amazon CloudWatch Events notifications to OpsGenie. OpsGenie can determine the right people to notify based on on-call schedules, using email, text messages (SMS), phone calls and iOS & Android push notifications, and escalating alerts until the alert is acknowledged or closed.

Functionality of the integration

  • When a state changes in your AWS resources, an alert is created in OpsGenie automatically through the integration.

Add Amazon CloudWatch Events Integration to OpsGenie

1.Please create an OpsGenie account if you haven't done already.
2.Go to OpsGenie Amazon CloudWatch Events Integration page.
3.Specify who should be notified for Amazon CloudWatch Events alerts using the "Teams" field. Auto-complete suggestions will be provided as you type.
4.Copy the API Key by clicking on the copy button or selecting.
5.Click on "Save Integration".

Configuration in Amazon CloudWatch Events

1.Go to SNS dashboard. From dashboard click on the Create Topic action.

2.Fill the required fields and click on Create topic.

3.From Topic details page click on Create subscription.

4.Choose Protocol as HTTPS and to Endpoint field paste the URL from the OpsGenie Amazon CloudWatch Events integration page. Then click Create subscription.

Upon successfully configuring SNS subscription to OpsGenie a confirmation alert should be created in OpsGenie.

5.Go to CloudWatch dashboard. From left side menu click on Rules under the Events.

6.In the opening page click on Create rule.

7.Choose the Event Source you want to get notifications from. Then add the SNS topic you created as the target. Then click on Configure details.

8.Populate the Name field and click on Create rule.

Sample Payload from OpsGenie Amazon CloudWatch Events Integration

{
  "Type": "Notification",
  "MessageId": "96d4c7c2-999e-57ab-aade-95f2f518987f",
  "TopicArn": "arn:aws:sns:us-west-2:450084125592:test",
  "Message": "{\"version\":\"0\",\"id\":\"3ee38987-e0ce-29f1-91a1-32704265286f\",\"detail-type\":\"EC2 Instance State-change Notification\",\"source\":\"aws.ec2\",\"account\":\"450084125592\",\"time\":\"2017-09-11T10:49:41Z\",\"region\":\"us-west-2\",\"resources\":[\"arn:aws:ec2:us-west-2:450084125592:instance/i-04d6ebefdb72ed49d\"],\"detail\":{\"instance-id\":\"i-04d6ebefdb72ed49d\",\"state\":\"terminated\"}}",
  "Timestamp": "2017-09-11T10:49:42.630Z",
  "SignatureVersion": "1",
  "Signature": "Iv8ewIJf2dmmz62H7F0Hbnfohl/DIfFd0eZ4eyo4vjrb/wEEoNji9S3xGQtpo1E9gXyMM8spmrULq20o25+OKXwZd5tRue7D69olvdcUdqRAN/bBfaHHq6tKVxnVnidgNq1VknAMeQRgd8qwVW1gARXTdO2z9AeDrOCH/ozEgNK3vwoFsDDxwKFxlFa9aioxxOu0uGlyuUpIb2rOaOwSo0aloE14XY9tgWrGlAxp+YwyHJbwXj36oAAU0GZOZV5C4TMhnRIdBnI9Y4juq7Dyrxqy1w4nI0NrWgEPi5CMss57M/tj6+gRnP4KeldOFHpaBGdw3/hOMdq9vA8yH934sA==",
  "SigningCertURL": "https://sns.us-west-2.amazonaws.com/SimpleNotificationService-433026a4050d206028891664da859041.pem",
  "UnsubscribeURL": "https://sns.us-west-2.amazonaws.com/?Action=Unsubscribe&SubscriptionArn=arn:aws:sns:us-west-2:450084125592:test:5c91fe30-1217-4627-a7f7-3bf153826ee9"
}

This payload is parsed by OpsGenie as:

{
  "id":"5c1f7731-23e0-0e90-124f-38ddb2811b49",
  "detail-type":"EC2 Instance State-change Notification",
  "source":"aws.ec2",
  "account":"450084125592",
  "time":"2017-09-11T10:03:33Z",
  "region":"us-west-2",
  "detail":{"instance-id":"i-04d6ebefdb72ed49d","state":"stopping"}}"
}

Amazon CloudWatch Events Integration