This section describes configuration properties for sending Apigee hybrid metrics data to Cloud Operations . Metrics collection is enabled by default. See also Metrics collection overview .
Required configuration
The following overrides file settings configure metrics collection:
gcp : region : $GCP_REGION projectID : $GCP_PROJECT_ID metrics : serviceAccountPath : $SERVICE_ACCOUNT_PATH
Where:
-
$GCP_REGIONidentifies the GCP region where theapigee-loggerand theapigee-metricspush their data. -
$GCP_PROJECT_IDidentifies the Google Cloud project whereapigee-loggerand theapigee-metricspush their data. -
$SERVICE_ACCOUNT_PATHis 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 Writerrole. For details on creating service accounts, see Step 5: Add service accounts .
Example:
gcp : region : us - central1 projectID : acme - project metrics : 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

