---
title: "Get all RUM-based metrics"
method: GET
path: "/api/v2/rum/config/metrics"
tags: ["Rum Metrics"]
---

# Get all RUM-based metrics

`GET /api/v2/rum/config/metrics`

Get the list of configured RUM-based metrics with their definitions.

## Response `200`

OK

- RumMetricsResponse — All the available RUM-based metric objects.
  - `data` RumMetricResponseData[] — A list of RUM-based metric objects.
    - `attributes` RumMetricResponseAttributes — The object describing a Datadog RUM-based metric.
      - `compute` RumMetricResponseCompute — The compute rule to compute the RUM-based metric.
        - `aggregation_type` 'count' | 'distribution' — The type of aggregation to use.
        - `include_percentiles` boolean — Toggle to include or exclude percentile aggregations for distribution metrics. Only present when `aggregation_type` is `distribution`.
        - `path` string — The path to the value the RUM-based metric will aggregate on. Only present when `aggregation_type` is `distribution`.
      - `event_type` 'session' | 'view' | 'action' | 'error' | 'resource' | 'long_task' | 'vital' — The type of RUM events to filter on.
      - `filter` RumMetricResponseFilter — The RUM-based metric filter. RUM events matching this filter will be aggregated in this metric.
        - `query` string — The search query - following the RUM search syntax.
      - `group_by` RumMetricResponseGroupBy[] — The rules for the group by.
        - `path` string — The path to the value the RUM-based metric will be aggregated over.
        - `tag_name` string — Eventual name of the tag that gets created. By default, `path` is used as the tag name.
      - `uniqueness` RumMetricResponseUniqueness — The rule to count updatable events. Is only set if `event_type` is `session` or `view`.
        - `when` 'match' | 'end' — When to count updatable events. `match` when the event is first seen, or `end` when the event is complete.
    - `id` string — The name of the RUM-based metric.
    - `type` 'rum_metrics' — The type of the resource. The value should always be rum_metrics.

## Other responses

- `403` — Not Authorized
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
