Reference Class to interface with a Prometheus Server

Fields

host

The hostname of the Prometheus server

port

The port number of the Prometheus server

Methods

query(query, time = NULL, timeout = NULL)

Run an instant query

rangeQuery(query, start, end, step, timeout = NULL)

Query data for a specific range

Examples

prom <- Prometheus$new(host = "https://foo.bar", port = 9090)