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
Request
- Base URLhttps://api.uptrace.dev
- Auth
- HTTP bearer
- or API key in query parameter auth_token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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.
Changes
No recorded changes to this operation across all 1 revision of this API.