#include <jsonrpc_metrics.hpp>
|
| JsonRpcMetrics (std::shared_ptr< prometheus::Registry > registry) |
|
void | report (const std::string &request, const std::string &ip, const std::string &connection, uint64_t request_duration) |
|
| 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.
|
|
void | updateData () |
| method that is used to call registered updaters for the specific class
|
|
|
const std::vector< double > | buckets = {1000, 10000, 100000, 1000000, 10000000} |
|
◆ JsonRpcMetrics()
taraxa::metrics::JsonRpcMetrics::JsonRpcMetrics |
( |
std::shared_ptr< prometheus::Registry > |
registry | ) |
|
|
inline |
◆ report()
void taraxa::metrics::JsonRpcMetrics::report |
( |
const std::string & |
request, |
|
|
const std::string & |
ip, |
|
|
const std::string & |
connection, |
|
|
uint64_t |
request_duration |
|
) |
| |
|
inline |
◆ buckets
const std::vector<double> taraxa::metrics::JsonRpcMetrics::buckets = {1000, 10000, 100000, 1000000, 10000000} |
◆ group_name
const std::string taraxa::metrics::JsonRpcMetrics::group_name = "jsonrpc" |
|
inlinestatic |
The documentation for this class was generated from the following file: