Cloud Computing

4 Mins Read

How CloudWatch Synthetics Helps in Application Monitoring?

How easy is it to monitor your application endpoints for tracing and identifying problems and fix them before they impact your customers?

The canaries make this task easier for you. Canaries.!!?

Yes, Amazon CloudWatch Synthetics is a new feature that enables you to monitor your application endpoints 24*7 more efficiently and clearly. You can create canaries and configure the scripts to monitor your endpoints and APIs in a scheduled manner. Canaries will follow a similar path and acts as same as a customer so that makes it possible to frequently verify the user experience even when there is no traffic on your applications.

Canaries are configurable Node.js scripts. They create Lambda functions for your application monitoring, and they work over HTTP and HTTPS protocols. It checks the availability and latency of your applications and stores the load time data and as well as a screenshot of your UI. And they check the availability of the endpoints from their point of view.

The security concern for Synthetic canaries are as follows:

How to use CloudWatch Synthetics?

  1. Login into the AWS Console and under the Management and governance select Cloudwatch
  2. From the CloudWatch dashboard select Synthetics
    How CloudWatch Synthetics Helps in Application Monitoring?
  3. Now, click on create Canary
  4. For creating your first Canary you will have three options
    How CloudWatch Synthetics Helps in Application Monitoring?
  5. I’m using API canary in this example. And Name your Canary and enter your API endpoint
    How CloudWatch Synthetics Helps in Application Monitoring?
  6. If we want to edit the Canary script, we can do it in Script editor. This script will be configured for your API endpoint mentioned.
    How CloudWatch Synthetics Helps in Application Monitoring?
  7. Now, you need to decide how your canaries should run, you have two options
    • Run once Or
    • To run continuously at a specific interval
      How CloudWatch Synthetics Helps in Application Monitoring?
  8. You can create a retention period to store Failure Canary data and as well as Success Canary data so that we can act on it when necessary
    How CloudWatch Synthetics Helps in Application Monitoring?
  9. The artifacts created by each Canary run will be stored in an S3 bucket, you can select the existing bucket or a default bucket will be created.
    How CloudWatch Synthetics Helps in Application Monitoring?
  10. An IAM role will be created to execute the Canary.
  11. You can also Create Alarms for getting notified by your Canary
  12. Now click Create Canary, it takes up to a minute to get created
  13. So, you will receive the results of your Canary run, which shows whether the test is Passed or Failed
    How CloudWatch Synthetics Helps in Application Monitoring?
  14. You can check the Logs for your Canary run, screenshot shows how your customers see your applications and HAR(HTTP Archive files) gives detailed data about the performance of your web pages
    How CloudWatch Synthetics Helps in Application Monitoring?

    • Here you can check the status of all your canaries which are Success and Failed
      How CloudWatch Synthetics Helps in Application Monitoring?

So, the canaries can also be customized as per your requirement to check for broken links, page load errors, latency, transactions in your applications to reduce the meantime for resolving the issues. You will get 100 Canary runs per month with no charge, and after that, you pay per run. The prices start at $0.0012 per run in addition to it the usual charges for S3 storage and Lambda invocations.

Learn more about our AWS CloudWatch with our AWS Solutions Architect Course.

Please comment if you have any questions.

WRITTEN BY Rekha S

SHARE

Comments

    Click to Comment

Get The Most Out Of Us

Our support doesn't end here. We have monthly newsletters, study guides, practice questions, and more to assist you in upgrading your cloud career. Subscribe to get them all!