Retrieves metrics data with support for filtering, sorting, and pagination. Metrics are grouped by metric name with individual data points. Supports filtering by direct column fields (bool_value, trace_id, etc.), label fields (labels.agent_name, labels.trace_id), and attribute fields (attributes.*).
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Metrics query parameters including filters, environments, and pagination
Start time in Unix seconds timestamp.
1772905218
End time in Unix seconds timestamp.
1772905218
Pagination cursor for fetching the next page of results. The cursor is returned in the response to the previous request.
1772905218000
List of environments to filter by
["prd", "stg", "dev"]
Maximum number of metrics to return per page.
50
AND, OR Metric name to filter by. The metric_name is a metric attribute that is set on the metric object.
"answer relevancy"
Metric source to filter by. The metric_source is a metric attribute that is set on the metric object.
"llm_as_a_judge"
Field to sort by.
"timestamp"
Sort order.
"ASC"
Grouped metrics with data points