5#include <prometheus/gauge.h>
6#include <prometheus/summary.h>
8#define QUANTILE_DEFAULTS \
9 prometheus::Summary::Quantiles { {0.5, 0.1}, {0.9, 0.1}, {0.99, 0.1} }
15 .Name(std::format(
"{}{}{}", name,
"_processing_time_", metricID))
16 .Help(name +
" processing performance")
20 .Name(std::format(
"{}{}{}", name,
"_maximum_processing_time_", metricID))
21 .Help(
"Maximum value of the " + name +
" processing performance")
25 .Name(std::format(
"{}{}{}", name,
"_minimum_processing_time_", metricID))
26 .Help(
"Minimum value of the " + name +
" processing performance")
30 _minTiming->Set(std::numeric_limits<int>::max());
37 const auto val =
static_cast<double>((std::chrono::high_resolution_clock::now() -
_startTime).count());
40 if (val < _minTiming->Value())