Prometheus_query | R Documentation |
Run a instant query against the Prometheus Server
query |
The PromQL query |
time |
Evaluation timestamp, can be a rfc3339 or Unix timestamp. Optional, defaults to current Prometheus server time. |
timeout |
Evaluation timeout (e.g. 1h, 1.5m or 15s). Optional, defaults to timeout value of the Prometheus server. |
## Not run:
prom <- Prometheus$new(host = "https://foo.bar", port = 9090)
metrics <- prom$query(query = "up", time = "2018-10-26T20:10:51.781Z")
metrics <- prom$query(query = "up", time = "1540677062")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.