PrometheusMemoryAdapter: Memory adapter

Description Methods

Description

Internal memory structure for storing Prometheus metrics

Methods

Public methods


Method new()

Usage
PrometheusMemoryAdapter$new()
Returns

instance of PrometheusMemoryAdapter Gather up all known metric samples


Method collect()

Usage
PrometheusMemoryAdapter$collect()
Returns

vector of metric samples Upsert a given gauge in memory


Method updateGauge()

Usage
PrometheusMemoryAdapter$updateGauge(input_list)
Arguments
input_list

list of values needed to update a gauge

Returns

PrometheusGauge being updated Upsert a given counter in memory


Method updateCounter()

Usage
PrometheusMemoryAdapter$updateCounter(input_list)
Arguments
input_list

list of values needed to update a counter

Returns

PrometheusCounter being updated


Method clone()

The objects of this class are cloneable with this method.

Usage
PrometheusMemoryAdapter$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


cfmack/pRometheus documentation built on Jan. 25, 2021, 3:45 a.m.