package multi
import "github.com/go-kit/kit/metrics/multi"
Package multi provides adapters that send observations to multiple metrics simultaneously. This is useful if your service needs to emit to multiple instrumentation systems at the same time, for example if your organization is transitioning from one system to another.
Index ¶
- type Counter
- func NewCounter(c ...metrics.Counter) Counter
- func (c Counter) Add(delta float64)
- func (c Counter) With(labelValues ...string) metrics.Counter
- type Gauge
- func NewGauge(g ...metrics.Gauge) Gauge
- func (g Gauge) Add(delta float64)
- func (g Gauge) Set(value float64)
- func (g Gauge) With(labelValues ...string) metrics.Gauge
- type Histogram
Types ¶
type Counter ¶
Counter collects multiple individual counters and treats them as a unit.
func NewCounter ¶
NewCounter returns a multi-counter, wrapping the passed counters.
func (Counter) Add ¶
Add implements counter.
func (Counter) With ¶
With implements counter.
type Gauge ¶
Gauge collects multiple individual gauges and treats them as a unit.
func NewGauge ¶
NewGauge returns a multi-gauge, wrapping the passed gauges.
func (Gauge) Add ¶
Add implements metrics.Gauge.
func (Gauge) Set ¶
Set implements Gauge.
func (Gauge) With ¶
With implements gauge.
type Histogram ¶
Histogram collects multiple individual histograms and treats them as a unit.
func NewHistogram ¶
NewHistogram returns a multi-histogram, wrapping the passed histograms.
func (Histogram) Observe ¶
Observe implements Histogram.
func (Histogram) With ¶
With implements histogram.
Source Files ¶
- Version
- v0.13.0 (latest)
- Published
- May 29, 2023
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 4 hours ago –
Tools for package owners.