> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/continuous-delivery/use-continuous-delivery/verify-deployments/configure-cv/health-sources/google-cloud-operations.md).

# Google Cloud Operations

The Google Cloud Operations Suite was formerly known as Stackdriver.

### Before you begin <a href="#before-you-begin" id="before-you-begin"></a>

This page assumes you have followed the rest of the steps to set up CV. To learn more, go to [Configure CV](/continuous-delivery/use-continuous-delivery/verify-deployments/configure-cv/verify-deployments.md)

* [Add Google Cloud Operations as a verification provider](/harness-ai/use-harness-platform/connectors/monitoring-and-logging-systems/connect-to-monitoring-and-logging-systems.md#add-google-cloud-operations-formerly-stackdriver)
* To configure GCP metrics as a health source in Harness, you should first create a GCP dashboard and then import it.

### Step 5: Add Health Sources <a href="#step-5-add-health-sources" id="step-5-add-health-sources"></a>

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.

1. In **Select health source type**, select Google Cloud Operations.

   ![](/files/sFqHlZN7kufLqncFga4W)
2. In **Health Source Name**, enter a name for the Health Source.
3. Under **Connect Health Source**, click **Select Connector**.
4. In **Connector** settings, you can either choose an existing connector GCP connector or click **New Connector.**

   ![](/files/DJLDFISxrrdgvO9Cixqj)
5. Click **Apply Selected**. The Connector is added to the Health Source.
6. (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 has access to. You can also enter a custom project ID, but the connector must have access to that project, otherwise an error will occur when fetching data. Leave this field empty to use the connector's default project.
7. In **Select Feature**, select the feature to be used.

![](/files/7R31b9MVks2xarMxuXDh)

### Option: Cloud Metrics <a href="#option-cloud-metrics" id="option-cloud-metrics"></a>

1. Select Cloud Metrics and click **Next**. The **Select Dashboard** settings appear.
2. Click one or more dashboards from the displayed results. If you don't have any pre-existing dashboards or don't want to select the ones in the displayed result, click **Manually input query.** ![](/files/dt8c9eZBPguS9UcAJgwL)
3. Click **Next** and the **Customize Health Source** settings appear.
4. Select a query from the options displayed on the left side of setting panel. The specification of the selected query auto-populates in the fields under **Query Specifications**. ![](/files/l5O42ltsJaZGDGaM0Sii)
5. In **Configure Risk Profile**, select one of the following risk types in **Risk Category**:

   | Risk Type                 | Type of Values              | Deviation Type          | Default Delta | Default Ratio |
   | ------------------------- | --------------------------- | ----------------------- | ------------- | ------------- |
   | Error                     | 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           |
6. In **Deviation Compared to Baseline**, select one of the options based on the selected risk type.
7. Click **Submit**. The Health Source is displayed in the AI Verify (v1) step.

### Option: Cloud Logs <a href="#option-cloud-logs" id="option-cloud-logs"></a>

Select Cloud Logs and 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.

1. Click **Map Queries to Harness Services** drop down.
2. Enter a name for the query in **Name your Query**.
3. In **Query**, enter the query and click **Fetch Records.** The retrieved results appear in **Records**.
4. In **Identify Service Instance**, click the plus icon to select the path of the service instance.
5. In **Identify Message**, click the plus icon to select the message identifier.

![](/files/nd8pd51CJpePFi9IodLX)

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.
