v1

latestOpenAPI 3.1.0MIT2026-07-1393128198.4 KB
Metrics

List metric attributes

List available attribute keys for metrics. Returns attribute keys with their kind (str, int, float), unit, and count (how many metrics use each attribute). Use the search parameter to filter by metric name. Use this to discover which attributes are available for group by in dashboard queries.

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

Path parameters

project_idinteger required

Uptrace project ID.

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 keys list.

noDataboolean

True when no attributes exist for the project at all (independent of the current filter).

whereAttrsobject

Map of WHERE attribute names to their matched values, derived from the parsed query.