> [!CAUTION]
> You are currently viewing version 1.2 of the Apigee hybrid documentation. **This version is end of life.** You should upgrade to a newer version. For more information, see [Supported versions](https://docs.cloud.google.com/apigee/docs/hybrid/supported-platforms.md.txt#supported-versions).

<button class="button button-with-icon cloud-select-dropdown__button button-primary" aria-haspopup="true">Version 1.2 (unsupported)</button>

- Supported versions:
- [v1.17 (latest)](https://docs.cloud.google.com/apigee/docs/hybrid/v1.17/metrics-enable.md.txt)
- [v1.16](https://docs.cloud.google.com/apigee/docs/hybrid/v1.16/metrics-enable.md.txt)
- [v1.15](https://docs.cloud.google.com/apigee/docs/hybrid/v1.15/metrics-enable.md.txt)
- [v1.14](https://docs.cloud.google.com/apigee/docs/hybrid/v1.14/metrics-enable.md.txt)
- [List of supported versions](https://docs.cloud.google.com/apigee/docs/hybrid/supported-platforms.md.txt#supported-versions)
- Unsupported versions:
- [v1.13](https://docs.cloud.google.com/apigee/docs/hybrid/v1.13/metrics-enable.md.txt)
- [v1.12](https://docs.cloud.google.com/apigee/docs/hybrid/v1.12/metrics-enable.md.txt)
- [v1.11](https://docs.cloud.google.com/apigee/docs/hybrid/v1.11/metrics-enable.md.txt)
- [v1.10](https://docs.cloud.google.com/apigee/docs/hybrid/v1.10/metrics-enable.md.txt)
- [v1.9](https://docs.cloud.google.com/apigee/docs/hybrid/v1.9/metrics-enable.md.txt)
- [v1.8](https://docs.cloud.google.com/apigee/docs/hybrid/v1.8/metrics-enable.md.txt)
- [v1.7](https://docs.cloud.google.com/apigee/docs/hybrid/v1.7/metrics-enable.md.txt)
- [v1.6](https://docs.cloud.google.com/apigee/docs/hybrid/v1.6/metrics-enable.md.txt)
- [v1.5](https://docs.cloud.google.com/apigee/docs/hybrid/v1.5/metrics-enable.md.txt)
- [v1.4](https://docs.cloud.google.com/apigee/docs/hybrid/v1.4/metrics-enable.md.txt)
- [v1.3](https://docs.cloud.google.com/apigee/docs/hybrid/v1.3/metrics-enable.md.txt)
- [v1.2](https://docs.cloud.google.com/apigee/docs/hybrid/v1.2/metrics-enable.md.txt)
- [v1.1](https://docs.cloud.google.com/apigee/docs/hybrid/v1.1/metrics-enable.md.txt)


Apigee hybrid metrics collection is disabled by default; you must provide
a few configuration properties in your overrides file to enable hybrid
to send the collected metrics data to
[Stackdriver](https://cloud.google.com/monitoring/kubernetes-engine/).

## Required configuration


To enable Apigee hybrid to send collected metrics data to [Stackdriver](https://cloud.google.com/monitoring/kubernetes-engine/),
you must provide these configuration settings in your overrides
file:

    ...

    # gcpProjectID: project_ID       # Deprecated.

    gcp:                             # v1.2.0 and later: Use this element instead of gcpProjectID.
      region: gcp-region
      projectID: gcp-project-id

    metrics:
      enabled: true
      serviceAccountPath: service_account_file


Where:

- `gcpProjectID` identifies the project where `apigee-logger` and the `apigee-metrics` push their data.
- `gcp-region` identifies the GCP [region](https://cloud.google.com/compute/docs/regions-zones#available) where the `apigee-logger` and the `apigee-metrics` push their data.
- `gcp-project-id` identifies the project where `apigee-logger` and the `apigee-metrics` push their data.
- `serviceAccountPath` is the path on your filesystem to the GCP service account key file that was downloaded during the Apigee hybrid [installation procedure](https://docs.cloud.google.com/apigee/docs/hybrid/v1.2/precog-overview.md.txt). The service account associated with the key must have the **Monitoring Metrics Writer** role. For details on creating service accounts, see [Step 5: Add service
  accounts](https://docs.cloud.google.com/apigee/docs/hybrid/v1.2/precog-serviceaccounts).


Example:

    ...

    # gcpProjectID: acme-hybrid      # Deprecated

    gcp:                             # v1.2.0 and later: Use this element instead of gcpProjectID.
      region: us-central1
      projectID: acme-project

    metrics:
      enabled: true
      serviceAccountPath: ./service-accounts/metrics-sa.json

## How to disable metrics collection

To disable metrics collection, add the following configuration to your overrides and apply it
to the cluster:

```
...
metrics:
  enabled: false
...
```

*[Google Cloud]: Google Cloud