Cloudwatch
Harness supports only the Metrics Insight query language.
Before you begin
This page assumes you have followed the rest of the steps to set up CV. To learn more, go to Configure CV
Add Cloudwatch as a health source
This option is available only if you have configured the service and environment as fixed values.
A Health Source is basically a mapping of a Harness Service to the service in a deployment environment monitored by an APM or logging tool.
-
In Health Sources, click Add. The Add New Health Source settings appear.
-
In Select health source type, select CloudWatch.
-
In Health Source Name, enter a name for the Health Source.
-
Under Connect Health Source, click Select Connector.
-
In Connector settings, you can either choose an existing connector or click New Connector.
-
Click Apply Selected. The Connector is added to the Health Source.
-
In Select Feature, select the CloudWatch feature to be used.
-
Click Next.
The Customize Health Source settings appear.
You can customize the metrics to map the Harness Service to the monitored environment in Query Specifications and Mapping settings.The subsequent settings in Customize Health Source depend on the Health Source Type you selected. Click Map Queries to Harness Services drop down. -
Select the AWS Region.
-
Click Add Metric.
-
Enter a name for the query in Name your Query.
-
Click Select Query to select a saved query. This is an optional step. You can also enter the query manually in the Query field.
-
Click Fetch Records to retrieve the details. The results are displayed under Records.
- Once the records are fetched, click the plus icon in Identify Service Instance to select the path for service instance.
- Click Submit. The Health Source is displayed in the Verify step.
You can add one or more Health Sources for each APM or logging provider.