package
0.6.64
Repository: https://github.com/effective-security/metrics.git
Documentation: pkg.go.dev

# Functions

NewPushSink creates a PrometheusPushSink by taking an address, interval, and destination name.
NewSink creates a new Sink using the default options.
NewSinkFrom creates a new Sink using the passed options.

# Constants

ObservationMaxAge defines the duration for which an observation stays relevant for the summary.

# Variables

DefaultPrometheusOpts is the default set of options used when creating a Sink.

# Structs

CounterDefinition can be provided to PrometheusOpts to declare a constant counter that is not deleted on expiry.
GaugeDefinition can be provided to PrometheusOpts to declare a constant gauge that is not deleted on expiry.
Opts is used to configure the Prometheus Sink.
PushSink wraps a normal prometheus sink and provides an address and facilities to export it to an address on an interval.
Sink provides a MetricSink that can be used with a prometheus server.
SummaryDefinition can be provided to PrometheusOpts to declare a constant summary that is not deleted on expiry.