v1

latestOpenAPI 3.0.12026-07-17221165.2 KB
SCALABLE TIME SERIES

Performs a time series query

The query is in the format described in pmseries(1) and is passed to the server via either the expr parameter (HTTP GET) or via the message body (HTTP POST).

When querying for time series matches only, no time window options are specified and matching series identifiers are returned in a JSON array.

$ curl -s 'http://localhost:44322/series/query?expr=disk.dev.read*' | pmjson

When querying for time series values as well, a time window must be specified as part of the query string. The simplest form is to just request the most recent sample.

$ curl -s 'http://localhost:44322/series/query?expr=disk.dev.read*[samples:1]' | pmjson

References: pmSeriesQuery(3)

get/series/query

Query parameters

exprstring

Query string in pmseries(1) format

clientstring

Request identifier sent back with response

Response

OK