Apigee hybrid metrics collection is enabled by default; however, you need to provide a few configuration properties in your overrides file to enable hybrid to send the collected metrics data to Stackdriver.
To enable Apigee hybrid to send collected metrics data to Stackdriver, you must provide these configuration settings in your overrides file:
... gcpProjectID: project_id k8sClusterName: cluster_name ... metrics: serviceAccountPath: service-account-file
- project_id 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.
- service_account_file is the path on your filesystem to the GCP service account key file that was downloaded during the Apigee hybrid installation procedure. 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.
... gcpProjectID: acme-hybrid k8sClusterName: acme-hybrid ... metrics: serviceAccountPath: ./service-accounts/metrics-sa.json
How to disable metrics collection
Metrics collection is enabled by default. To disable metrics collection, add the following configuration to your overrides and apply it to the cluster:
... metrics: enabled: false ...