Metrics (v2)
Published 03 September 2026
Preview: The v2 API is in preview and may change without notice before it's generally available.
Time-series metric data collected by Redgate Monitor from monitored servers — CPU, memory, wait stats, query durations, and more.
Custom metrics are also supported.
Operations
Method | Path | Description |
|---|---|---|
GET |
| |
GET |
|
List all metrics
Returns all metrics available for querying, optionally filtered by the server types they support. Use the returned id values as metricIds in GET /metrics/data.
Query parameters
supportedServerTypes array · entity-type · enum · OPTIONAL
Match metrics that support at least one of the supplied server types. Repeat the parameter for multiple values. null returns all metrics regardless of server type. Allowed values: Entity types.
GET /api/v2/metrics
curl -G https://your-host/api/v2/metrics \ -H "Authorization: Bearer $TOKEN" \ --data-urlencode "supportedServerTypes=SqlServer"
Responses
List metric time series data
Returns sampled metric data for each requested metric and entity combination over the specified time range.
Supply one or more metric IDs (from GET /metrics) and, optionally, entity IDs (from GET /monitored-servers). Omitting entityIds returns data for all entities that have data for the requested metrics.
The time range must be between 15 minutes and 31 days. When startTime and endTime are both omitted, the last hour is returned.
Query parameters
metricIds array string[], min 1 · REQUIRED
One or more metric IDs to retrieve data for. Use the id values returned by GET /metrics. Repeat the parameter for multiple values, e.g. ?metricIds=Machine.LogicalDisk.AverageReadTime&metricIds=Machine.Processors.PercentProcessorTime
entityIds array string[] · entity-id · OPTIONAL
Optional entity IDs to restrict results to. Use the entityId values returned by GET /monitored-servers. Repeat the parameter for multiple values. Omit to return data for all entities that have data for the requested metrics.
startTime string · date-time · OPTIONAL
Start of the time range (UTC). Defaults to one hour before endTime, or one hour before the current time when endTime is also omitted.
endTime string · date-time · OPTIONAL
End of the time range (UTC). Must be later than startTime when startTime is provided. Defaults to the current time.
GET /api/v2/metrics/data
curl -G https://your-host/api/v2/metrics/data \ -H "Authorization: Bearer $TOKEN" \ --data-urlencode "metricIds=Machine.LogicalDisk.AverageReadTime" \ --data-urlencode "entityIds=r1,4:base,...,7:Machine,..." \ --data-urlencode "startTime=2026-08-19T12:00:00Z" \ --data-urlencode "endTime=2026-08-19T13:00:00Z"
Responses
This documentation contains proprietary information and is protected by copyright law.
Copyright © 2026 Red Gate Software Limited. All rights reserved