Google Cloud Operations
Add Google Cloud Operations as a health source for Continuous Verification
This topic explains how to configure Google Cloud Operations (formerly Stackdriver) as a health source in Harness Continuous Verification (CV). Google Cloud Operations provides metrics and log data that Harness CV uses to verify deployment health.
What you will learn from this topic
How to configure Cloud Metrics with dashboards or a manual query
How to configure Cloud Logs with query mapping
How to assign a risk profile for Continuous Verification
Before you begin
This topic assumes you have completed the prerequisite setup for Continuous Verification. Go to Configure CV to complete those steps before adding a health source.
Confirm the following:
Google Cloud Operations connector: Go to Add a Google Cloud Platform (GCP) connector to add the verification provider connector.
GCP dashboard (Cloud Metrics path): Create a GCP dashboard before you import metrics into Harness, or plan to use Manually input query.
Add Google Cloud Operations as a health source
This option is available only if you have configured the service and environment as fixed values.
A health source maps a Harness service to the service in a deployment environment monitored by an APM or logging tool.
Perform the following steps to add Google Cloud Operations as a health source:
In Health Sources, click Add. The Add New Health Source settings appear.

Health Sources panel showing Add and the Add New Health Source dialog In Select health source type, select Google Cloud Operations.
In Health Source Name, enter a name for the health source.
Under Connect Health Source, click Select Connector.
In Connector settings, choose an existing GCP connector or click New Connector.

Connector settings showing existing GCP connectors and New Connector Click Apply Selected. The connector is added to the health source.
(Optional) In GCP Project ID, select a project from the dropdown to query metrics or logs from a different project than the one configured in your connector. The dropdown auto-populates with all GCP projects that your connector's service account can access. You can also enter a custom project ID, but the connector must have access to that project; otherwise an error occurs when fetching data. Leave this field empty to use the connector's default project.
In Select Feature, select the feature to use.

Select Feature options for Google Cloud Operations health source
Cloud Metrics
Perform the following steps to configure Cloud Metrics:
Select Cloud Metrics, then click Next. The Select Dashboard settings appear.
Click one or more dashboards from the displayed results. If you do not have any pre-existing dashboards or do not want to select the ones in the displayed result, click Manually input query.

Select Dashboard results with Manually input query option Click Next. The Customize Health Source settings appear.
Select a query from the options displayed on the left side of the settings panel. The specification of the selected query auto-populates in the fields under Query Specifications.

Customize Health Source showing query list and Query Specifications In Configure Risk Profile, select one of the following risk types in Risk Category:
Risk TypeType of ValuesDeviation TypeDefault DeltaDefault RatioError
Web / Business transactions
Higher is bad
0
0
Infrastructure
Cpu, memory ....
Higher and Lower is bad
20
0.2
Performance/Other
Cpu, memory ....
Higher and Lower is bad
20
0.2
Performance/Throughput
Web / Business transactions
Lower is bad
20
0.2
Performance/Response time
Web / Business transactions
Higher is bad
20
0.2
In Deviation Compared to Baseline, select one of the options based on the selected risk type.
Click Submit. The health source is displayed in the AI Verify (v1) step.
Cloud Logs
Select Cloud Logs, then 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.
Perform the following steps to map log queries:
Click Map Queries to Harness Services.
Enter a name for the query in Name your Query.
In Query, enter the query and click Fetch Records. The retrieved results appear in Records.
In Identify Service Instance, click the plus icon to select the path of the service instance.
In Identify Message, click the plus icon to select the message identifier.

Click Submit. The health source is displayed in the AI Verify (v1) step.
You can add one or more health sources for each APM or logging provider.
Troubleshooting
Next steps
Configure CV: Finish AI Verify (v1) step configuration after you add health sources.
AI Verify (v1) overview: Review Continuous Verification strategies, sensitivity, and duration.
Add a Google Cloud Platform (GCP) connector: Create or update the Platform connector.
Last updated
Was this helpful?