Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Solutions
  • Pricing
  • Documentation
  • Contact us
Get started
Yandex Monitoring
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Working with metrics
      • Getting a list of metrics
      • Downloading metrics
      • Writing custom metrics
      • Export metrics in Prometheus format
    • Working with dashboards
      • Creating dashboards
      • Copying dashboards
      • Adding widgets to a dashboard
      • Deleting widgets from a dashboard
      • Deleting dashboards
    • Working with alerts
      • Creating alerts
      • Creating notification channels
      • Deleting alerts
  • Concepts
    • Overview
    • Data model
    • Visualization
      • Overview
      • Query string
      • Widgets
      • Dashboards
    • Query language
    • Alerting
    • Data decimation
    • Deleting expired metrics (TTL)
    • Quotas and limits
  • Access management
  • Pricing policy
    • Current pricing policy
    • Archive
      • Policy before October 1, 2020
  • API reference
    • Authentication in the API
    • REST
      • Overview
      • MetricsData
        • Overview
        • read
        • write
        • prometheusMetrics
      • MetricsMeta
        • Overview
        • listLabelKeys
        • listLabelValues
        • listMetricNames
        • listMetrics
  • Questions and answers
  1. API reference
  2. REST
  3. MetricsMeta
  4. listLabelValues

Method listLabelValues

  • HTTP request
  • Path parameters
  • Query parameters
  • Response

Retries the list of values for a given label key.

HTTP request

GET https://monitoring.api.cloud.yandex.net/monitoring/v2/metrics/labels/{labelKey}/values

Path parameters

Parameter Description
labelKey Required. For which label key perform values lookup.

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.
valueFilter Substring value filter text.
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

{
  "values": [
    "string"
  ],
  "metricsCount": "string",
  "absent": true,
  "nextPageToken": "string"
}
Field Description
values[] string

List of values by given label key.

metricsCount string (int64)

Metrics count given by selectors.

absent boolean (boolean)

Flag determining that there are has some metrics without the given label.

nextPageToken string

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

In this article:
  • HTTP request
  • Path parameters
  • Query parameters
  • Response
Language / Region
Careers
Privacy policy
Terms of use
Brandbook
© 2021 Yandex.Cloud LLC