v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Metrics

Get a list of metrics

Get a list of actively reporting metrics for your organization. Pagination is optional using the page[cursor] and page[size] query parameters.

Query parameters use bracket notation (for example, filter[tags], filter[queried][window][seconds]). Pass them as standard URL query strings, URL-encoding the brackets if your client does not handle them. For example: GET /api/v2/metrics?filter[tags]=env:prod&window[seconds]=86400&page[size]=500.

get/api/v2/metrics

Query parameters

filter[configured]boolean

Only return custom metrics that have been configured (true) or not configured (false) with Metrics Without Limits.

filter[is_configurable]boolean

Only return metrics that are eligible (true) or ineligible (false) for configuration with Metrics Without Limits.

filter[tags_configured]string

Tag keys to filter by.

Only return metrics that have the given tag key(s) in their Metrics Without Limits configuration (included or excluded).

filter[metric_type]'non_distribution' | 'distribution'

The metric's type category.

Example:distribution

Only return metrics of the given metric type.

filter[include_percentiles]boolean

Only return distribution metrics that have percentile aggregations enabled (true) or disabled (false).

filter[queried]boolean

Only return metrics that have been queried (true) or not queried (false) in the look back window. Set the window with filter[queried][window][seconds]; if omitted, a default window is used.

filter[queried][window][seconds]integer

This parameter has no effect unless filter[queried] is also set. Only return metrics that have been queried or not queried in the specified window. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 1 second. For example: filter[queried]=true&filter[queried][window][seconds]=604800.

filter[tags]string

Only return metrics that were submitted with tags matching this expression. You can use AND, OR, IN, and wildcards. For example: filter[tags]=env IN (staging,test) AND service:web*.

filter[related_assets]boolean

Only return metrics that are used in at least one dashboard, monitor, notebook, or SLO.

includestring

Include related resources in the response. Set to metric_volumes to include indexed and ingested volume counts for each metric.

sortstring

Sort results by metric volume. Prefix a key with - for descending order. Supported keys: metric_volumes.indexed_volume, metric_volumes.ingested_volume, metric_volumes.indexed_volume_delta, metric_volumes.ingested_volume_delta. Requires a paginated request (page[size] or page[cursor]).

window[seconds]integer

Only return metrics that have been actively reporting in the specified window. The default value is 3600 seconds (1 hour), the maximum value is 2,592,000 seconds (30 days), and the minimum value is 1 second.

page[size]integer

Maximum number of results per page. Send page[size] on the first request to opt in to pagination. On each subsequent request, send page[cursor] set to the value of meta.pagination.next_cursor from the previous response. The default value is 10000, the maximum value is 10000, and the minimum value is 1.

page[cursor]string

Cursor for pagination. Use page[size] to opt-in to pagination and get the first page; for subsequent pages, use the value from meta.pagination.next_cursor in the response. Pagination is complete when next_cursor is null.

Response

Success

Example response

{
  "data": [
    {
      "id": "metric.foo.bar",
      "type": "metrics"
    }
  ],
  "included": [
    {
      "attributes": {
        "indexed_volume": 10,
        "ingested_volume": 20
      },
      "id": "test.metric.latency",
      "type": "metric_volumes"
    }
  ],
  "meta": {
    "pagination": {
      "type": "cursor_limit"
    }
  }
}