6 #ifndef KAGOME_CORE_METRICS_METRICS_HPP     7 #define KAGOME_CORE_METRICS_METRICS_HPP    34     virtual void inc() = 0;
    39     virtual void inc(
double val) = 0;
    51     virtual ~
Gauge() = 
default;
    56     virtual void inc() = 0;
    61     virtual void inc(
double val) = 0;
    66     virtual void dec() = 0;
    71     virtual void dec(
double val) = 0;
    76     virtual void set(
double val) = 0;
    80       set(
static_cast<double>(val));
    98     virtual void observe(
const double value) = 0;
   115     virtual void observe(
const double value) = 0;
   119 #endif  // KAGOME_CORE_METRICS_METRICS_HPP A histogram metric to represent aggregatable distributions of events. 
 
std::unique_ptr< Registry > RegistryPtr
 
RegistryPtr createRegistry()
 
A summary metric samples observations over a sliding window of time. 
 
virtual void inc()=0
Increment the counter by 1. 
 
virtual ~Counter()=default
 
A gauge metric to represent a value that can arbitrarily go up and down. 
 
A counter metric to represent a monotonically increasing value.