Metric time series
GET/metrics
Required role: viewer. An account or token with the viewer or admin role can call this operation.
Example request
curl --request GET \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
"https://$HOSERVA_HOST:8008/api/v1/metrics"
Returns downsampled samples from metrics.db for one metric/subject over a time window. Resolution is chosen from the window — raw for up to 48 hours, hourly for up to 90 days, daily beyond — so clients cannot force a full raw scan. A missing or empty metrics.db yields an empty series, not an array-health error.
Request
Responses
- 200
- default
The matching series, possibly empty.
An error response.