package
1.11.9
Repository: https://github.com/xmidt-org/webpa-common.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

MustNewRegistry is like NewRegistry, except that it panics when NewRegistry would return an error.
NewCollector creates a Prometheus metric from a Metric descriptor.
NewIncrementer creates a wrapper around a given Adder.
NewMerger creates a merging strategy with useful defaults.
NewRegistry creates an xmetrics.Registry from an externally supplied set of Options and a set of modules, which are functions that just return Metrics to register.

# Constants

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

Merger is the strategy for merging metrics from various sources.
Metric describes a single metric that will be preregistered.
Options is the configurable options for creating a Prometheus registry.

# Interfaces

Adder represents a metrics to which deltas can be added.
AddSetter represents a metric that can both have deltas applied and receive new values.
Incrementer represents an Adder which can only be incremented by 1.
LabelValuer is implemented by metrics which expose what their label values are.
Observer is a type of metric which receives observations.
PrometheusProvider is a Prometheus-specific version of go-kit's metrics.Provider.
Registry is the core abstraction for this package.
Setter represents a metric that can receive updates, e.g.
Valuer is implemented by metrics which can expose their current value.

# Type aliases

Module is a function type that returns prebuilt metrics.