listMetricNames method
Written by
Updated at August 11, 2025
Returns a list of metric names.
HTTP request
GET https://monitoring.api.cloud.yandex.net/monitoring/v2/metrics/names
Query parameters
| Parameter | Description |
|---|---|
| folderId | This is a required field. Metric folder ID. The maximum string length is 50 characters. |
| selectors | Label selectors for metrics. |
| nameFilter | Substring for metric name filtering. |
| fromTime | An optional parameter for selecting metrics from a specified time interval. Specify the time interval start point in RFC3339 format. |
| toTime | An optional parameter for selecting metrics from a specified time interval. Specify the time interval end point in RFC3339 format. |
The fromTime and toTime parameters are only used together. The response returns metrics that have data in the specified interval. To make sure the index is concise and optimized for such queries:
- Responses include metric data from the point when this metric was created to its last record, even if there are gaps in the data.
- For the existing metrics, the index gets updated every four to six hours. New metrics get added immediately.
Response
HTTP Code: 200 - OK
{
"names": [
"string"
]
}
| Field | Description |
|---|---|
| names[] | string List of metric names. |