Get a metric series
Returns time-series data points for a named metric within a time window. Use getServiceMetricsAvailableSeries to discover valid metric names.
Parameters are sent as a JSON body so callers can pass an unbounded filter set without query-string length pressure. The response is a list of MetricSeries, each carrying its label set as a structured map alongside its per-bucket data points.
Body ParametersJSON
Metric series name. Use getServiceMetricsAvailableSeries to discover valid values.
Aggregation bucket size in seconds. Optional: when omitted the server picks a default that matches the window (roughly 1m for windows up to 1h, 1h for up to 30d, 1d beyond that). Minimum is 60s (finer buckets don’t add resolution given scrape intervals). Must be coarse enough for the window’s tier; requests that ask for a finer bucket than the tier can produce are rejected.
Label keys to break the result into one series per distinct value combination. Optional: when omitted (or empty), all matching label sets collapse into a single series.
Not accepted on the following metrics — requests are rejected
with INVALID_REQUEST:
timescale_cloud_system_cpu_total_millicorestimescale_cloud_system_cpu_usage_millicorestimescale_cloud_system_disk_io_read_bytestimescale_cloud_system_disk_io_read_opstimescale_cloud_system_disk_io_total_bytestimescale_cloud_system_disk_io_total_opstimescale_cloud_system_disk_io_write_bytestimescale_cloud_system_disk_io_write_opstimescale_cloud_system_disk_usage_bytestimescale_cloud_system_memory_total_bytestimescale_cloud_system_memory_usage_bytes
Get a metric series
curl https://console.cloud.tigerdata.com/public/api/v1/projects/$PROJECT_ID/services/$SERVICE_ID/metrics/series \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $TIGER_CLOUD_API_KEY" \
-d '{
"from": "2026-06-25T10:00:00Z",
"metric_name": "timescale_cloud_system_cpu_usage_millicores",
"to": "2026-06-25T11:00:00Z",
"bucket_seconds": 3600,
"fn": "RATE",
"group_by": [
"role"
]
}'[
{
"data": [
{
"time": "2026-06-25T10:00:00Z",
"value": 247.5
}
],
"labels": {
"foo": "string"
}
}
]Returns Examples
[
{
"data": [
{
"time": "2026-06-25T10:00:00Z",
"value": 247.5
}
],
"labels": {
"foo": "string"
}
}
]