3#include <prometheus/counter.h>
4#include <prometheus/summary.h>
10 .Name(name +
"succeeded_commands")
11 .Help(
"Number of succeeded commands")
15 .Name(name +
"failed_commands")
16 .Help(
"Number of failed commands")
20 .Name(name +
"received_commands")
21 .Help(
"Number of received commands")
27 .Name(name +
"processing_time")
28 .Help(
"Command processing performance")
32 .Name(name +
"maximum_processing_time")
33 .Help(
"Maximum value of the command processing performance")
37 .Name(name +
"minimum_processing_time")
38 .Help(
"Minimum value of the command processing performance")
51 _totalCommand->Increment(
static_cast<double>(succeeded + failed));
54 if (processingTime > 0)
#define QUANTILE_DEFAULTS
prometheus::Counter * _succeededCommand
Number of succeeded commands.
prometheus::Gauge * _minProcessingTime
Minimum value of the command processing performance.
void consumeBaseStats(uint64_t succeeded, uint64_t failed, double processingTime)
prometheus::Counter * _failedCommand
Number of failed commands.
prometheus::Gauge * _maxProcessingTime
Maximum value of the command processing performance.
prometheus::Counter * _totalCommand
Number of total received commands.
prometheus::Summary * _processingTime
Value of the command processing performance.
void initBaseStats(const std::shared_ptr< prometheus::Registry > ®, const std::string &name)