Query metrics
POST
jwtheader
AuthorizationBearer <JWT>application/json- body
filter*last?stringMatch
^-?\d+[dhm]$from?stringAn ISO 8601 date time string
Match
^(?:\d+(?:\.\d+?)?|(?:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z))$Format
date-timeto?stringAn ISO 8601 date time string
Match
^(?:\d+(?:\.\d+?)?|(?:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z))$Format
date-timerollup?topN?integerRange
0 < value <= 100rankBy?stringValue in
"avg""max""sum"limit*integerRange
0 < value <= 10000Default
10000offset?integerRange
0 <= value <= 1000000output*stringDefault
"timeseries"Value in
"timeseries""timeseries-by-pod""timeseries-by-direction""timeseries-by-group""timeseries-resource""timeseries-top-n""single""group""summary""summary-by-agent""summary-delta""table-aggregated""scalar""scalar-by-agent""current-state""agent-terminated-events"application/json- response
[index: integer]?curl -X POST 'https://observability.your-tenant-id.my.contextual.io/api/v1/metrics' \ -H 'Content-Type: application/json' \ -d '{ "filter": {}, "limit": 10000, "output": "timeseries"}'Example Response
[ { "timestamp": "2019-08-24T14:15:22Z", "value": 0 }]