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:
In the console, select the Cloud project or the AWS connector project, and then go to the APIs & Services page:
Select Cloud Monitoring API.
Click Disable API.
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.