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

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

Amazon EC2 Auto Scaling Integration

Amazon EC2 Auto Scaling is a web service that provides automatic increase or decrease to the number of EC2 instances within your application's architecture. OpsGenie is an alert and notification management solution that is highly complementary to Auto Scaling notifications.

​What does OpsGenie offer to Amazon Auto Scaling users?

Amazon Auto Scaling can send notifications of scale changing events through SNS. OpsGenie acts as a dispatcher for these notifications, determining the right people to notify based on on-call schedules, notifying them using email, text messages (SMS), phone calls and iPhone & Android push notifications, and escalating alerts until the alert is acknowledged or closed.

Functionality of the integration

When an alert is created in Amazon EC2 Auto Scaling, an alert is created in OpsGenie automatically through the integration.

Add Amazon EC2 Auto Scaling Integration in OpsGenie

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

Setup Subscription on Amazon EC2 Auto Scaling

  1. Add an HTTPS subscription to your topic with the OpsGenie API endpoint by using the url provided from OpsGenie Integration

Upon successfully configuring SNS subscription to OpsGenie a confirmation alert will be created on OpsGenie:

  1. Configure your Auto Scaling group to send notifications to the SNS topic you've created.
  1. Right after you've saved the notifications configuration, Auto Scaling will send a test notification to OpsGenie that will create an alert.

Sample payload sent from Amazon EC2 Auto Scaling

Create Alert payload:

{
  "Type": "Notification",
  "MessageId": "1cf7a0eb-4179-4181-b15b-ea22c5aa0280",
  "TopicArn": "arn:aws:sns:us-east-1:377976399735:otoSkeyl",
  "Subject": "Auto Scaling: test notification for group \"otoskeylGroup\"",
  "Message": {
    "StatusCode": "InProgress",
    "Service": "AWS Auto Scaling",
    "AutoScalingGroupName": "otoskeylGroup",
    "Description": "Launching a new EC2 instance: i-257654cf",
    "ActivityId": "a1920e24-523b-4d71-8abb-c93704c4a01c",
    "Event": "autoscaling:EC2_INSTANCE_LAUNCH",
    "Details": {
      "Availability Zone": "us-east-1d"
    },
    "AutoScalingGroupARN": "arn:aws:autoscaling:us-east-1:377976399735:autoScalingGroup:59016df3-65d4-4d06-95ba-93403737f3d0:autoScalingGroupName/otoskeylGroup",
    "Progress": 50,
    "Time": "2014-12-01T12:30:12.513Z",
    "AccountId": "377976399735",
    "RequestId": "a1920e24-523b-4d71-8abb-c93704c4a01c",
    "StatusMessage": "statusmesic",
    "EndTime": "2014-12-01T12:30:12.513Z",
    "EC2InstanceId": "i-257654cf",
    "StartTime": "2014-12-01T12:29:38.644Z",
    "Cause": "At 2014-12-01T12:29:29Z a user request update of AutoScalingGroup constraints to min: 1, max: 2, desired: 2 changing the desired capacity from 1 to 2.  At 2014-12-01T12:29:37Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 1 to 2."
  },
  "Timestamp": "2014-12-01T09:48:46.429Z",
  "SignatureVersion": "1",
  "Signature": "XrsO2wtE0b+ofOl1Z85tqLqQn1fMuv07uRttlimTUg+rV4U9RmNSSBEdlmyWvtGgpjebsmNv1wkjUsBQOJZjZnpZp5FBn6quAn3twNdRMmMLf15lv6ESbYF8mpFHwmMhgWVkgq60vmjj/ZLwiH9Pr/cxVYOR0aPQBPDwTYn8w6g=",
  "SigningCertURL": "https://sns.us-east-1.amazonaws.com/SimpleNotificationService-f3ecfb7224c7233fede52f",
  "UnsubscribeURL": "https://sns.us-east-1.amazonaws.com/?Action=Unsubscribe&SubscriptionArn=arn:aws:sns:us-east-1:089311581210:CloudWatchHTTPAlarms:1841c5ca-ddda-450e-bbfb-bf0cf15813db"
}

This payload is parsed by OpsGenie as:

{
  "AutoScalingGroupName": "otoskeylGroup",
  "Service": "AWS Auto Scaling",
  "Time": "2014-12-01T12:30:12.513Z",
  "AccountId": "377976399735",
  "Event": "autoscaling:EC2_INSTANCE_LAUNCH",
  "RequestId": "a1920e24-523b-4d71-8abb-c93704c4a01c",
  "AutoScalingGroupARN": "arn:aws:autoscaling:us-east-1:377976399735:autoScalingGroup:59016df3-65d4-4d06-95ba-93403737f3d0:autoScalingGroupName/otoskeylGroup",
  "StatusCode": "InProgress",
  "Description": "Launching a new EC2 instance: i-257654cf",
  "ActivityId": "a1920e24-523b-4d71-8abb-c93704c4a01c",
  "Progress": 50,
  "StatusMessage": "statusmesic",
  "EndTime": "2014-12-01T12:30:12.513Z",
  "EC2InstanceId": "i-257654cf",
  "StartTime": "2014-12-01T12:29:38.644Z",
  "Details": {
    "Availability Zone": "us-east-1d"
  }
}

Amazon EC2 Auto Scaling Integration