package
0.4.3
Repository: https://github.com/heroku/x.git
Documentation: pkg.go.dev

# Packages

Package l2met provides a basic log-based metrics provider for cases where a real provider is not available.
No description provided by the author
Package multiprovider allows multiple metrics.Providers to be composed together to report metrics to multiple places.
No description provided by the author
Package testmetrics is for testing provider metrics with a test Provider that adheres to the Provider interface.

# Functions

MeasureSince takes a Histogram and initial time and generates an observation for the total duration of the operation.
NewDurationTimer wraps the given histogram and records the current time.
NewHLLCounter creates a new HyperLogLog based counter.
NewMonotonicTimer takes a histogram and units like Duration Timer, as well as a frequency to report statistics on.
WithPercentileDistribution will generate boundaries by scaling the values between the min and the max according to supplied percentile distribution pattern.
WithStandardPercentiles returns a bulls horn shaped distribution where the lower and upper boundaries are captured using more precision than the middle.

# Variables

FiveSecondDistribution is a percentile distribution between 0 and 5000 milliseconds.
TenSecondDistribution is a percentile distribution between 0 and 10,000 milliseconds.
ThirtySecondDistribution is a percentile distribution between 0 and 30,000 milliseconds.

# Structs

DurationTimer acts as a stopwatch, sending observations to a wrapped histogram.
HLLCounter provides a wrapper around a HyperLogLog probabalistic counter, capable of being reported to Librato.
MonotonicTimer emits metrics periodically until it is stopped.

# Interfaces

CardinalityCounter describes a metric that reports a count of the number of unique values inserted.
Provider represents the different types of metrics that a provider can expose.

# Type aliases

No description provided by the author