Orbit Framework
An ultra-modern, asynchronous, cross-platform C++ Web Framework.
Loading...
Searching...
No Matches
utils::PrometheusRegistry Class Reference

#include <PrometheusRegistry.hpp>

Public Member Functions

void inc_counter (const std::string &name, const std::string &labels="", double value=1.0)
 
void set_gauge (const std::string &name, const std::string &labels, double value)
 
void inc_gauge (const std::string &name, const std::string &labels="", double value=1.0)
 
void dec_gauge (const std::string &name, const std::string &labels="", double value=1.0)
 
void observe_histogram (const std::string &name, const std::string &labels, double value)
 
std::string expose () const
 

Static Public Member Functions

static PrometheusRegistryget_instance ()
 

Member Function Documentation

◆ dec_gauge()

void utils::PrometheusRegistry::dec_gauge ( const std::string &  name,
const std::string &  labels = "",
double  value = 1.0 
)

◆ expose()

std::string utils::PrometheusRegistry::expose ( ) const

◆ get_instance()

static PrometheusRegistry & utils::PrometheusRegistry::get_instance ( )
inlinestatic

◆ inc_counter()

void utils::PrometheusRegistry::inc_counter ( const std::string &  name,
const std::string &  labels = "",
double  value = 1.0 
)

◆ inc_gauge()

void utils::PrometheusRegistry::inc_gauge ( const std::string &  name,
const std::string &  labels = "",
double  value = 1.0 
)

◆ observe_histogram()

void utils::PrometheusRegistry::observe_histogram ( const std::string &  name,
const std::string &  labels,
double  value 
)

◆ set_gauge()

void utils::PrometheusRegistry::set_gauge ( const std::string &  name,
const std::string &  labels,
double  value 
)

The documentation for this class was generated from the following files: