diff --git a/meter/meter.go b/meter/meter.go index 9741b7fa..c01f98ef 100644 --- a/meter/meter.go +++ b/meter/meter.go @@ -82,7 +82,11 @@ type FloatCounter interface { // Gauge is a float64 gauge type Gauge interface { + Add(float64) Get() float64 + Set(float64) + Dec() + Inc() } // Histogram is a histogram for non-negative values with automatically created buckets diff --git a/meter/noop.go b/meter/noop.go index f6d2ea0d..8f397310 100644 --- a/meter/noop.go +++ b/meter/noop.go @@ -136,6 +136,18 @@ type noopGauge struct { labels []string } +func (r *noopGauge) Add(float64) { +} + +func (r *noopGauge) Set(float64) { +} + +func (r *noopGauge) Inc() { +} + +func (r *noopGauge) Dec() { +} + func (r *noopGauge) Get() float64 { return 0 }