Disable collection of metrics

This document describes how to disable the Cloud Monitoring API for a Trusted Cloud project.

Disable collection of all metrics

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

Console

  1. In the Trusted Cloud console, select the Trusted Cloud 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.