#include <metrics_group.hpp>
|
| MetricsGroup (std::shared_ptr< prometheus::Registry > registry) |
|
virtual | ~MetricsGroup ()=default |
|
template<class Type > |
prometheus::Family< Type > & | addMetric (const std::string &name, const std::string &help) |
| template method to add metric family. Family is a metric, but additional labels could be specified for it. Labels if optional. More...
|
|
void | updateData () |
| method that is used to call registered updaters for the specific class More...
|
|
◆ MetricGetter
◆ MetricUpdater
◆ MetricsGroup()
taraxa::metrics::MetricsGroup::MetricsGroup |
( |
std::shared_ptr< prometheus::Registry > |
registry | ) |
|
|
inline |
◆ ~MetricsGroup()
virtual taraxa::metrics::MetricsGroup::~MetricsGroup |
( |
| ) |
|
|
virtualdefault |
◆ addMetric()
template<class Type >
prometheus::Family<Type>& taraxa::metrics::MetricsGroup::addMetric |
( |
const std::string & |
name, |
|
|
const std::string & |
help |
|
) |
| |
|
inline |
template method to add metric family. Family is a metric, but additional labels could be specified for it. Labels if optional.
- Template Parameters
-
Type | type of prometheus metric that should be added |
- Parameters
-
name | metric name |
help | help string for metric(description) |
- Returns
- Family<T>
◆ updateData()
void taraxa::metrics::MetricsGroup::updateData |
( |
| ) |
|
|
inline |
method that is used to call registered updaters for the specific class
◆ registry_
std::shared_ptr<prometheus::Registry> taraxa::metrics::MetricsGroup::registry_ |
|
protected |
◆ updaters_
std::vector<MetricUpdater> taraxa::metrics::MetricsGroup::updaters_ |
|
protected |
The documentation for this class was generated from the following file: