Method: projects.metricDescriptors.create

Creates a new metric descriptor. The creation is executed asynchronously and callers may check the returned operation to track its progress. User-created metric descriptors define custom metrics.

HTTP request


Path parameters



Required. The project on which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]

Request body

The request body contains an instance of MetricDescriptor.

Response body

If successful, the response body contains a newly created instance of MetricDescriptor.

Authorization Scopes

Requires one of the following OAuth scopes:


For more information, see the Authentication Overview.