Disable collection of metrics

You can prevent the ingestion of chargeable metrics into a Cloud de Confiance project by disabling the Cloud Monitoring API.

Disable collection of all metrics

To prevent the collection of all metrics, disable the Cloud Monitoring API:

Console

  1. In the Cloud de Confiance console, select the Cloud de Confiance project, and then go to the APIs & Services page:

    Go to APIs & Services

  2. Select Cloud Monitoring API.

  3. Click Disable API.

gcloud

Run the following command to disable the Cloud Monitoring API in your current project:

gcloud services disable monitoring.googleapis.com

For information about disabling an API by using Google Cloud CLI, see Enabling and Disabling Services.