3 #include "prometheus/client_metric.h"
4 #include "prometheus/detail/builder.h"
5 #include "prometheus/detail/core_export.h"
6 #include "prometheus/gauge.h"
7 #include "prometheus/metric_type.h"
26 class PROMETHEUS_CPP_CORE_EXPORT
Counter {
28 static const MetricType metric_type{MetricType::Counter};
39 void Increment(
double);
80 PROMETHEUS_CPP_CORE_EXPORT detail::Builder<Counter> BuildCounter();
A counter metric to represent a monotonically increasing value.
Definition: counter.h:26
Counter()=default
Create a counter that starts at 0.
A gauge metric to represent a value that can arbitrarily go up and down.
Definition: gauge.h:24
Definition: client_metric.h:12