Documentation ¶
Index ¶
- type Counter
- type CounterVec
- type DurationHistogramVec
- type FuncCounter
- type FuncGauge
- type FuncIntGauge
- type Gauge
- type GaugeVec
- type Histogram
- type HistogramVec
- type IntGauge
- type IntGaugeVec
- type Registry
- func (r Registry) ComposeName(parts ...string) string
- func (r Registry) Counter(_ string) metrics.Counter
- func (r Registry) CounterVec(_ string, _ []string) metrics.CounterVec
- func (r Registry) DurationHistogram(_ string, _ metrics.DurationBuckets) metrics.Timer
- func (r Registry) DurationHistogramVec(_ string, _ metrics.DurationBuckets, _ []string) metrics.TimerVec
- func (r Registry) FuncCounter(_ string, function func() int64) metrics.FuncCounter
- func (r Registry) FuncGauge(_ string, function func() float64) metrics.FuncGauge
- func (r Registry) FuncIntGauge(_ string, function func() int64) metrics.FuncIntGauge
- func (r Registry) Gauge(_ string) metrics.Gauge
- func (r Registry) GaugeVec(_ string, _ []string) metrics.GaugeVec
- func (r Registry) Histogram(_ string, _ metrics.Buckets) metrics.Histogram
- func (r Registry) HistogramVec(_ string, _ metrics.Buckets, _ []string) metrics.HistogramVec
- func (r Registry) IntGauge(_ string) metrics.IntGauge
- func (r Registry) IntGaugeVec(_ string, _ []string) metrics.IntGaugeVec
- func (r Registry) Stream(_ context.Context, _ io.Writer) (int, error)
- func (r Registry) Timer(_ string) metrics.Timer
- func (r Registry) TimerVec(_ string, _ []string) metrics.TimerVec
- func (r Registry) WithPrefix(_ string) metrics.Registry
- func (r Registry) WithTags(_ map[string]string) metrics.Registry
- type Timer
- type TimerVec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DurationHistogramVec ¶
type DurationHistogramVec struct{}
func (DurationHistogramVec) Reset ¶
func (t DurationHistogramVec) Reset()
type FuncCounter ¶
type FuncCounter struct {
// contains filtered or unexported fields
}
func (FuncCounter) Function ¶
func (c FuncCounter) Function() func() int64
type FuncIntGauge ¶
type FuncIntGauge struct {
// contains filtered or unexported fields
}
func (FuncIntGauge) Function ¶
func (g FuncIntGauge) Function() func() int64
type Histogram ¶
type Histogram struct{}
func (Histogram) RecordDuration ¶
func (Histogram) RecordValue ¶
type HistogramVec ¶
type HistogramVec struct{}
func (HistogramVec) Reset ¶
func (t HistogramVec) Reset()
type IntGaugeVec ¶
type IntGaugeVec struct{}
func (IntGaugeVec) Reset ¶
func (t IntGaugeVec) Reset()
type Registry ¶
type Registry struct{}
func (Registry) ComposeName ¶
func (Registry) CounterVec ¶
func (r Registry) CounterVec(_ string, _ []string) metrics.CounterVec
func (Registry) DurationHistogram ¶
func (Registry) DurationHistogramVec ¶
func (Registry) FuncCounter ¶
func (r Registry) FuncCounter(_ string, function func() int64) metrics.FuncCounter
func (Registry) FuncIntGauge ¶
func (r Registry) FuncIntGauge(_ string, function func() int64) metrics.FuncIntGauge
func (Registry) HistogramVec ¶
func (Registry) IntGaugeVec ¶
func (r Registry) IntGaugeVec(_ string, _ []string) metrics.IntGaugeVec
Click to show internal directories.
Click to hide internal directories.