Amazon CloudWatch collects monitoring and operational data in the form of logs, metrics, and events, providing you with a unified view of AWS resources, applications and services that run on AWS, and on-premises servers.
In this topic:
Harness Continuous Verification integrates with CloudWatch to verify your deployments and live production applications using the following Harness features:
- 24/7 Service Guard - Monitors your live, production applications.
- Deployment Verification - Monitors your application deployments, and performs automatic rollback according to your criteria.
This document describes how to set up these Harness Continuous Verification features and monitor your deployments and production applications using its unsupervised machine-learning functionality.
|Monitoring with CloudWatch
Verification is limited to EC2 instance and ELB-related metrics data.
Integration Process Summary
You set up CloudWatch and Harness in the following way:
- CloudWatch - Using CloudWatch, you monitor the EC2 and ELB used to run your microservice or application.
- Cloud Provider - In Harness, you connect Harness to your AWS account, adding AWS as a Cloud Provider.
- Harness Application - Create a Harness Application with a Service and an Environment. We do not cover Application setup in this sequence. See Application Components.
- 24/7 Service Guard Setup**-** In the Environment, set up 24/7 Service Guard to monitor your live, production application.
- Verify Deployments:
- Add a Workflow to your Harness Application and deploy your microservice or application to the service infrastructure/Infrastructure Definition in your Environment.
- After you have run a successful deployment, you then add verification steps to the Workflow using your Verification Provider.
- Harness uses unsupervised machine-learning and CloudWatch analytics to analyze your future deployments, discovering events that might be causing your deployments to fail. Then you can use this information to set rollback criteria and improve your deployments.
For information on setting up CloudWatch to monitor EC2, ECS, and ELB, see Monitoring Your Instances Using CloudWatch from AWS. When you enable CloudWatch monitoring on EC2, you are prompted with the following dialog.
Click Yes, Enable, and then go to CloudWatch to view metrics.