...

Package statsd

import "github.com/hyperledger/fabric/common/metrics/statsd"
Overview
Index
Subdirectories

Overview ▾

type Counter

type Counter struct {
    Counter *statsd.Counter
    // contains filtered or unexported fields
}

func (*Counter) Add

func (c *Counter) Add(delta float64)

func (*Counter) With

func (c *Counter) With(labelValues ...string) metrics.Counter

type Gauge

type Gauge struct {
    Gauge *statsd.Gauge
    // contains filtered or unexported fields
}

func (*Gauge) Add

func (g *Gauge) Add(delta float64)

func (*Gauge) Set

func (g *Gauge) Set(value float64)

func (*Gauge) With

func (g *Gauge) With(labelValues ...string) metrics.Gauge

type Histogram

type Histogram struct {
    Timing *statsd.Timing
    // contains filtered or unexported fields
}

func (*Histogram) Observe

func (h *Histogram) Observe(value float64)

func (*Histogram) With

func (h *Histogram) With(labelValues ...string) metrics.Histogram

type Provider

type Provider struct {
    Statsd *statsd.Statsd
}

func (*Provider) NewCounter

func (p *Provider) NewCounter(o metrics.CounterOpts) metrics.Counter

func (*Provider) NewGauge

func (p *Provider) NewGauge(o metrics.GaugeOpts) metrics.Gauge

func (*Provider) NewHistogram

func (p *Provider) NewHistogram(o metrics.HistogramOpts) metrics.Histogram

Subdirectories

Name Synopsis
..
goruntime