Prometheus_rangeQuery | R Documentation |
Run a range query against the Prometheus Server
query |
The PromQL query |
start |
Start timestamp, can be a rfc3339 or Unix timestamp. |
end |
End timestamp, can be a rfc3339 or Unix timestamp. |
step |
Query resolution step width (e.g. 15s) |
timeout |
Evaluation timeout. Optional, defaults to timeout value of the Prometheus server. |
## Not run:
prom <- Prometheus$new(host = "https://foo.bar", port = 9090)
rangeMetrics <-
prom$rangeQuery(
query = "up",
start = "2018-10-25T20:10:51.781Z",
end = "2018-10-26T20:10:51.781Z",
step = "15s"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.