v1

latestOpenAPI 3.1.0MIT2026-07-1393128198.4 KB
Metrics

List attribute values

List values for a specific metric attribute key. Returns distinct attribute values with their occurrence count. Use the search parameter to filter by metric name.

get/internal/v1/metrics/{project_id}/attributes/{attr_key}

Path parameters

project_idinteger required

Uptrace project ID.

attr_keystring required

Attribute key including type suffix (e.g. host_name::str, http_status_code::int).

Query parameters

time_startstring date-time required

RFC3339 timestamp.

Start time (inclusive) as RFC3339 timestamp.

time_endstring date-time required

RFC3339 timestamp.

End time (exclusive) as RFC3339 timestamp.

searchstring

Search string to filter metrics by name.

Response

Attribute values list.

hasMoreboolean required