Amazon CloudWatch Integration Guide
Amazon CloudWatch is an observability tool that helps monitor AWS resources and services. It collects data, gains insights and helps track system changes across your AWS platform. It allows alerts to be set for certain metric thresholds. When metrics fall outside the threshold, alerts are triggerd.
Increase the effectiveness and visbility of these alerts with TaskCall's Amazon CloudWatch integration. Alerts will be received in TaskCall immediately after they trigger on CloudWatch, kicking off our powerful and persistent notification mechanism to bring the correct responders on-board and resolve it with urgency.
- The integration is between a TaskCall service and Amazon CloudWatch.
- Incidents will automatically resolve in TaskCall when metrics fall back within the normal threshold.
- This integration only receives alerts in TaskCall from Amazon CloudWatch.
- Go to Configurations > Services . Select the service you want to integrate with.
- Once you are on the Service details page, go to the Integrations tab. Click on New Integration.
- Give the integration a name.
- From the integration types, select the top radio button indicating that you are trying to use a built-in integration.
- From the list of built-in integrations, select Amazon Cloud Watch.
- Click Save.
- Copy the Integration Url that is issued for the integration.
- First, we have to set up a notification service to send alerts to TaskCall. Type SNS (Simple Notification Services) in the search bar up top. Once you are on the SNS page, go to Topics > Create topic.
- Set the topic type to be Standard . Give it a name and a display name . Click Create topic.
- Once the topic is created, from the same page go to Subscriptions > Create subscription.
- For the Topic Arn select the topic you just created; set the protocol as HTTPS ; paste the Integration Url you copied over from TaskCall in the Endpoint. Nothing else needs to be added. Click Create subscription.
Once the subscription is created, if the "Status" shows as "Pending confirmation", then refresh the page. It will update the status to "Confirmed".
- Go to your EC2 instances dashboard. Choose the instances you want to monitor by selecting their respective checkboxes. Then click on Actions > Monitor and troubleshoot > Manage CloudWatch alarms.
- Select the Create an alarm option; in the Alarm Notification section, select the SNS topic you created earlier; select the type of alarm you want to create and configure it. Then click Create.
- At this stage, we have set up CloudWatch to pass the alerts to TaskCall when they are triggered. We still need to configure it to re-notify TaskCall when the alarm resolves so that the incident created in TaskCall can also be automatically resolved.
- For this search for CloudWatch in the search bar and navigate to the Alarms page once you are there. You will see the alarm you created listed there. Click on it. Then click Actions > Edit.
- Once you are on the alarm's page, click Next to go to Alarm Configurations.
- Click Add notification .
- In the Alarm state trigger section, select the OK option. Choose the Select an existing SNS topic radio button. In the "Send a notification to" section, choose the SNS topic you created earlier.
- Click Update.
- Done! Now you have fully integrated Amazon CloudWatch with TaskCall. You will get alerted when alarms are raised and will also see the incidents resolve themselves when the alarms on CloudWatch revert to their normal state.