Prometheus_rangeQuery: Prometheus Range Query

Prometheus_rangeQueryR Documentation

Prometheus Range Query

Description

Run a range query against the Prometheus Server

Arguments

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.

Examples

## 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)

glenn-m/promR documentation built on March 22, 2023, 8:49 p.m.