Skip to main content
POST
Execute a Prometheus query

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
query
string
required
Minimum string length: 3
Example:

"avg(routeros_system_cpu_load)"

from
string
Example:

"now-24h"

to
string
Example:

"now"

step
string
Pattern: ^\d+[smhdwy]$
Example:

"5m"

labels
object

Response

The proxied Prometheus response.

The response is of type object.