package
3.1.1+incompatible
Repository: https://github.com/bitcoincore-dev/grafana.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
NewCounter constructs a new StandardCounter.
NewCustomTimer constructs a new StandardTimer from a Histogram and a Meter.
NewEWMA constructs a new EWMA with the given alpha.
NewEWMA1 constructs a new EWMA for a one-minute moving average.
NewEWMA15 constructs a new EWMA for a fifteen-minute moving average.
NewEWMA5 constructs a new EWMA for a five-minute moving average.
NewExpDecaySample constructs a new exponentially-decaying sample with the given reservoir size and alpha.
No description provided by the author
No description provided by the author
NewMeter constructs a new StandardMeter and launches a goroutine.
No description provided by the author
Create a new registry.
NewTimer constructs a new StandardTimer using an exponentially-decaying sample with the same reservoir size and alpha as UNIX load averages.
NewUniformSample constructs a new uniform sample with the given reservoir size.
No description provided by the author
No description provided by the author
No description provided by the author
SampleMax returns the maximum value of the slice of int64.
SampleMean returns the mean value of the slice of int64.
SampleMin returns the minimum value of the slice of int64.
SamplePercentiles returns an arbitrary percentile of the slice of int64.
SamplePercentiles returns a slice of arbitrary percentiles of the slice of int64.
SampleStdDev returns the standard deviation of the slice of int64.
SampleSum returns the sum of the slice of int64.
SampleVariance returns the variance of the slice of int64.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Timers.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
ExpDecaySample is an exponentially-decaying sample using a forward-decaying priority reservoir.
GaugeSnapshot is a read-only copy of another Gauge.
No description provided by the author
HistogramSnapshot is a read-only copy of another Histogram.
No description provided by the author
No description provided by the author
No description provided by the author
NilEWMA is a no-op EWMA.
NilGauge is a no-op Gauge.
NilHistogram is a no-op Histogram.
NilMeter is a no-op Meter.
NilSample is a no-op Sample.
NilTimer is a no-op Timer.
SampleSnapshot is a read-only copy of another Sample.
StandardCounter is the standard implementation of a Counter and uses the sync/atomic package to manage a single int64 value.
StandardEWMA is the standard implementation of an EWMA and tracks the number of uncounted events and processes them on each tick.
StandardGauge is the standard implementation of a Gauge and uses the sync/atomic package to manage a single int64 value.
StandardHistogram is the standard implementation of a Histogram and uses a Sample to bound its memory use.
StandardMeter is the standard implementation of a Meter.
The standard implementation of a Registry is a mutex-protected map of names to metrics.
StandardTimer is the standard implementation of a Timer and uses a Histogram and Meter.
TimerSnapshot is a read-only copy of another Timer.
A uniform sample using Vitter's Algorithm R.
# Interfaces
Counters hold an int64 value that can be incremented and decremented.
EWMAs continuously calculate an exponentially-weighted moving average based on an outside source of clock ticks.
Gauges hold an int64 value that can be set arbitrarily.
Histograms calculate distribution statistics from a series of int64 values.
Meters count events to produce exponentially-weighted moving average rates at one-, five-, and fifteen-minutes and a mean rate.
No description provided by the author
No description provided by the author
No description provided by the author
Samples maintain a statistically-significant selection of values from a stream.
Timers capture the duration and rate of events.
# Type aliases
EWMASnapshot is a read-only copy of another EWMA.