Method: projects.metricDescriptors.delete

Deletes a metric descriptor. Only user-created custom metrics can be deleted.

HTTP request

DELETE https://monitoring.googleapis.com/v3/{name}

Path parameters

Parameters
name

string

The metric descriptor on which to execute the request. The format is "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An example of {metric_id} is: "custom.googleapis.com/my_test_metric".

Request body

The request body must be empty.

Response body

If successful, the response body will be empty.

Authorization

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/monitoring

For more information, see the Auth Guide.

Send feedback about...

Stackdriver Monitoring