Clio develop
The XRP Ledger API server.
|
Implemetation of PrometheusInterface. More...
#include <Prometheus.hpp>
Public Member Functions | |
Bool | boolMetric (std::string name, Labels labels, std::optional< std::string > description=std::nullopt) override |
Get a bool based metric. It will be created if it doesn't exist. | |
CounterInt & | counterInt (std::string name, Labels labels, std::optional< std::string > description) override |
Get an integer based counter metric. It will be created if it doesn't exist. | |
CounterDouble & | counterDouble (std::string name, Labels labels, std::optional< std::string > description) override |
Get a double based counter metric. It will be created if it doesn't exist. | |
GaugeInt & | gaugeInt (std::string name, Labels labels, std::optional< std::string > description) override |
Get an integer based gauge metric. It will be created if it doesn't exist. | |
GaugeDouble & | gaugeDouble (std::string name, Labels labels, std::optional< std::string > description) override |
Get a double based gauge metric. It will be created if it doesn't exist. | |
HistogramInt & | histogramInt (std::string name, Labels labels, std::vector< std::int64_t > const &buckets, std::optional< std::string > description=std::nullopt) override |
Get an integer based histogram metric. It will be created if it doesn't exist. | |
HistogramDouble & | histogramDouble (std::string name, Labels labels, std::vector< double > const &buckets, std::optional< std::string > description=std::nullopt) override |
Get a double based histogram metric. It will be created if it doesn't exist. | |
std::string | collectMetrics () override |
Collect all metrics and return them as a string in Prometheus format. | |
PrometheusInterface (bool isEnabled, bool compressReply) | |
Construct a new Prometheus Interface object. | |
![]() | |
PrometheusInterface (bool isEnabled, bool compressReply) | |
Construct a new Prometheus Interface object. | |
bool | isEnabled () const |
Whether prometheus is enabled. | |
bool | compressReplyEnabled () const |
Whether to compress the reply. | |
Implemetation of PrometheusInterface.
|
overridevirtual |
Get a bool based metric. It will be created if it doesn't exist.
name | The name of the metric |
labels | The labels of the metric |
description | The description of the metric |
Implements util::prometheus::PrometheusInterface.
|
overridevirtual |
Collect all metrics and return them as a string in Prometheus format.
Implements util::prometheus::PrometheusInterface.
|
overridevirtual |
Get a double based counter metric. It will be created if it doesn't exist.
name | The name of the metric |
labels | The labels of the metric |
description | The description of the metric |
Implements util::prometheus::PrometheusInterface.
|
overridevirtual |
Get an integer based counter metric. It will be created if it doesn't exist.
name | The name of the metric |
labels | The labels of the metric |
description | The description of the metric |
Implements util::prometheus::PrometheusInterface.
|
overridevirtual |
Get a double based gauge metric. It will be created if it doesn't exist.
name | The name of the metric |
labels | The labels of the metric |
description | The description of the metric |
Implements util::prometheus::PrometheusInterface.
|
overridevirtual |
Get an integer based gauge metric. It will be created if it doesn't exist.
name | The name of the metric |
labels | The labels of the metric |
description | The description of the metric |
Implements util::prometheus::PrometheusInterface.
|
overridevirtual |
Get a double based histogram metric. It will be created if it doesn't exist.
name | The name of the metric |
labels | The labels of the metric |
buckets | The buckets of the metric |
description | The description of the metric |
Implements util::prometheus::PrometheusInterface.
|
overridevirtual |
Get an integer based histogram metric. It will be created if it doesn't exist.
name | The name of the metric |
labels | The labels of the metric |
buckets | The buckets of the metric |
description | The description of the metric |
Implements util::prometheus::PrometheusInterface.
|
inline |
Construct a new Prometheus Interface object.
isEnabled | Whether prometheus is enabled |
compressReply | Whether to compress the reply |