GET/v2/insights/query/{region}/prom/api/v1/series

Find series by label selectors

To find series matching one or more selectors, send a GET request to /v2/insights/query/{region}/prom/api/v1/series.

4 parameters
regionstringrequired
The datacenter region slug for the query.
match[]array<string>required
One or more series selectors. At least one matcher is required. Repeat the parameter for multiple matchers.
startstringoptional
Optional start timestamp (inclusive). Accepts a RFC3339 string or a UNIX timestamp.
endstringoptional
Optional end timestamp (inclusive). Accepts a RFC3339 string or a UNIX timestamp.

10 status codes
200Matching series label sets.
statusstringrequired
Allowed:success
dataarray<object>required
400Prometheus-style query error.
statusstringrequired
Allowed:error
errorTypestringrequired
Prometheus error category.
Allowed:bad_datainternaltimeoutcanceledexecutionunavailable
errorstringrequired
Human-readable error message.
401Authentication failed due to invalid credentials.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
403The authenticated principal does not have permission to perform this action on the requested resource.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
404The resource was not found.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
422Prometheus-style query error.
statusstringrequired
Allowed:error
errorTypestringrequired
Prometheus error category.
Allowed:bad_datainternaltimeoutcanceledexecutionunavailable
errorstringrequired
Human-readable error message.
429The API rate limit has been exceeded.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
500Prometheus-style query error.
statusstringrequired
Allowed:error
errorTypestringrequired
Prometheus error category.
Allowed:bad_datainternaltimeoutcanceledexecutionunavailable
errorstringrequired
Human-readable error message.
503Prometheus-style query error.
statusstringrequired
Allowed:error
errorTypestringrequired
Prometheus error category.
Allowed:bad_datainternaltimeoutcanceledexecutionunavailable
errorstringrequired
Human-readable error message.
defaultThere was an unexpected error.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.

Error handling

A 400 is returned: Prometheus-style query error. A 401 is returned: Authentication failed due to invalid credentials. A 403 is returned: The authenticated principal does not have permission to perform this action on the requested resource. A 404 is returned: The resource was not found. A 422 is returned: Prometheus-style query error. A 429 is returned: The API rate limit has been exceeded. A 500 is returned: Prometheus-style query error. A 503 is returned: Prometheus-style query error. Any other status is an error: There was an unexpected error.