|
static void | init (util::config::ClioConfigDefinition const &config) |
| Initialize the singleton with the given configuration.
|
|
static util::prometheus::Bool | boolMetric (std::string name, util::prometheus::Labels labels, std::optional< std::string > description=std::nullopt) |
| Get a bool based metric. It will be created if it doesn't exist.
|
|
static util::prometheus::CounterInt & | counterInt (std::string name, util::prometheus::Labels labels, std::optional< std::string > description=std::nullopt) |
| Get an integer based counter metric. It will be created if it doesn't exist.
|
|
static util::prometheus::CounterDouble & | counterDouble (std::string name, util::prometheus::Labels labels, std::optional< std::string > description=std::nullopt) |
| Get a double based counter metric. It will be created if it doesn't exist.
|
|
static util::prometheus::GaugeInt & | gaugeInt (std::string name, util::prometheus::Labels labels, std::optional< std::string > description=std::nullopt) |
| Get an integer based gauge metric. It will be created if it doesn't exist.
|
|
static util::prometheus::GaugeDouble & | gaugeDouble (std::string name, util::prometheus::Labels labels, std::optional< std::string > description=std::nullopt) |
| Get a double based gauge metric. It will be created if it doesn't exist.
|
|
static util::prometheus::HistogramInt & | histogramInt (std::string name, util::prometheus::Labels labels, std::vector< std::int64_t > const &buckets, std::optional< std::string > description=std::nullopt) |
| Get an integer based histogram metric. It will be created if it doesn't exist.
|
|
static util::prometheus::HistogramDouble & | histogramDouble (std::string name, util::prometheus::Labels labels, std::vector< double > const &buckets, std::optional< std::string > description=std::nullopt) |
| Get a double based histogram metric. It will be created if it doesn't exist.
|
|
static std::string | collectMetrics () |
| Collect all metrics and return them as a string in Prometheus format.
|
|
static bool | isEnabled () |
| Whether prometheus is enabled.
|
|
static bool | compressReplyEnabled () |
| Whether to compress the reply.
|
|
static void | replaceInstance (std::unique_ptr< util::prometheus::PrometheusInterface > inst) |
| Replace the prometheus object stored in the singleton.
|
|
static util::prometheus::PrometheusInterface & | instance () |
| Get the prometheus object stored in the singleton.
|
|
Singleton class to access the PrometheusInterface.