Configure metrics collection

You are currently viewing version 1.1 of the Apigee hybrid documentation.This version is end of life. You should upgrade to a newer version. For more information, seeSupported versions.

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 toStackdriver.

Required configuration

To enable Apigee hybrid to send collected metrics data toStackdriver, you must provide these configuration settings in your overrides file:

...gcpProjectID:project_IDk8sClusterName:cluster_name...metrics:  enabled: true  serviceAccountPath:service_account_file

Where:

  • gcpProjectID is a GCP project ID. Metrics data will be sent to the Stackdriver instance in that project.
  • k8sClusterName is the name of the Kubernetes cluster where the hybrid runtime is installed.
  • serviceAccountPath is the path on your filesystem to the GCP service account key file that was downloaded during the Apigee hybridinstallation procedure. The service account associated with the key must have theMonitoring Metrics Writer role. For details on creating service accounts, seeStep 5: Add service accounts.

Example:

...gcpProjectID: acme-hybridk8sClusterName: acme-hybrid...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 itto the cluster:

...metrics:  enabled: false...

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.