Method listMetrics

Retrieves the list of metrics.

HTTP request

GET https://monitoring.api.cloud.yandex.net/monitoring/v2/metrics

Query parameters

Parameter Description
folderId Required. ID of the folder that the metric belongs to. The maximum string length in characters is 50.
selectors Metric selectors.
pageSize Maximum number of metrics in response. 0 means default page size = 30, maximum page size = 10000.
pageToken Page token. To get the next page of results, set pageToken to the nextPageToken returned by a previous list request.

Response

HTTP Code: 200 - OK

{
  "metrics": [
    {
      "name": "string",
      "labels": "object",
      "type": "string"
    }
  ],
  "nextPageToken": "string"
}
Field Description
metrics[] object

List of metrics.

metrics[].
name
string

Name of the metric.

metrics[].
labels
object

Metric labels as key:value pairs.

metrics[].
type
string

Type of the metric.

  • DGAUGE: Gauge with fractional values.
  • IGAUGE: Gauge with integer values.
  • COUNTER: Counter.
  • RATE: Rate.
nextPageToken string

This token allows you to get the next page of results for list requests.