# Packages
Package mock_metrics is a generated GoMock package.
Package metrics contains interfaces for generic metrics primitives, to facilitate mocking metrics in unit tests.
# Functions
CounterAdd increases the passed in counter by the amount specified.
CounterInc increases the passed in counter by 1.
CounterValue extracts the value out of a TestCounter.
CounterWith returns a Counter with the labels provided.
GaugeAdd increases the passed in gauge by the amount specified.
GaugeInc increases the passed in gauge by 1.
GaugeSet sets the passed in gauge to the value specified.
GaugeSetCurrentTime sets the passed gauge to the current time.
GaugeSetTimestamp sets the passed gauge to the specified time stamp.
GaugeValue extracts the value out of a TestGauge.
GaugeWith returns a Gauge with the labels provided.
HistogramObserve adds an observation to the histogram.
HistogramWith returns a Histogram with the labels provided.
NewPromCounter wraps a prometheus counter vector as a counter.
NewPromCounterFrom creates a wrapped prometheus counter.
NewPromGauge wraps a prometheus gauge vector as a gauge.
NewPromHistogram wraps a prometheus histogram vector as a histogram.
NewPromHistogramFrom creates a wrapped prometheus histogram.
NewTestCounter creates a new counter for use in tests.
NewTestGauge creates a new gauge for use in tests.
Timestamp expresses a timestamp in seconds since UNIX epoch.
# Structs
TestCounter implements a counter for use in tests.
TestGauge implements a gauge for use in tests.
# Interfaces
Counter describes a metric that accumulates values monotonically.
Gauge describes a metric that takes specific values over time.
Histogram describes a metric that takes repeated observations of the same kind of thing, and produces a statistical summary of those observations, typically expressed as quantiles or buckets.