Method: projects.metricDescriptors.get

Gets a single metric descriptor. This method does not require a Stackdriver account.

HTTP request

GET 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 value of {metric_id} is "compute.googleapis.com/instance/disk/read_bytes_count".

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of MetricDescriptor.

Authorization

Requires one of the following OAuth scopes:

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

For more information, see the Auth Guide.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Stackdriver Monitoring