Disable the Cloud Monitoring API

This document describes how to disable the Cloud Monitoring API for a Google Cloud project. You might want to disable the Cloud Monitoring API, for example, when you want to prevent ingestion of chargeable metrics into a Google Cloud project. For information about the metrics a Google Cloud project can view and monitor, see Viewing metrics for multiple projects overview.

To disable the Cloud Monitoring API, do the following:

console

  1. In the console, select the Cloud project or the AWS connector project, and then go to the APIs & Services page:

    Go to APIs & Services

  2. Select Cloud Monitoring API.

  3. Click Disable API.

gcloud CLI

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.