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"
28 static const MetricType metric_type{MetricType::Counter};
80PROMETHEUS_CPP_CORE_EXPORT detail::Builder<Counter> BuildCounter();
void Increment()
Increment the counter by 1.
Definition counter.cc:5
double Value() const
Get the current value of the counter.
Definition counter.cc:14
Counter()=default
Create a counter that starts at 0.
ClientMetric Collect() const
Get the current value of the counter.
Definition counter.cc:16
A gauge metric to represent a value that can arbitrarily go up and down.
Definition gauge.h:24
Definition client_metric.h:12