MetricDescriptors: create

Requires authorization

Create a new metric. See custom metrics for details of the use of this API. Try it now.


HTTP request



Parameter name Value Description
Path parameters
project string The project id. The value can be the numeric project ID or string-based project name.


This request requires authorization with at least one of the following scopes (read more about authentication and authorization).


Request body

In the request body, supply a MetricDescriptors resource.


If successful, this method returns a MetricDescriptors resource in the response body.

Try it!

Use the APIs Explorer below to call this method on live data and see the response. Alternatively, try the standalone Explorer.

Monitor your resources on the go

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

Send feedback about...

Stackdriver Monitoring