5#include "prometheus/client_metric.h"
6#include "prometheus/detail/builder.h"
7#include "prometheus/detail/core_export.h"
8#include "prometheus/metric_type.h"
24class PROMETHEUS_CPP_CORE_EXPORT
Gauge {
26 static const MetricType metric_type{MetricType::Gauge};
32 explicit Gauge(
double);
38 void Increment(
double);
44 void Decrement(
double);
50 void SetToCurrentTime();
62 std::atomic<double> value_{0.0};
92PROMETHEUS_CPP_CORE_EXPORT detail::Builder<Gauge> BuildGauge();
A gauge metric to represent a value that can arbitrarily go up and down.
Definition gauge.h:24
Gauge()=default
Create a gauge that starts at 0.
Definition client_metric.h:12