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. |
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" )#> Error in curl::curl_fetch_memory(url, handle = handle): Could not resolve host: foo.bar