Prometheus-class: Prometheus class

Prometheus-classR Documentation

Prometheus class

Description

Reference Class to interface with a Prometheus Server

promR logo

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

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

## End(Not run)

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