package
0.1.3
Repository: https://github.com/amazechain/amc.git
Documentation: pkg.go.dev

# Functions

Get the metric by the given name or nil if none is registered.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Handler returns an HTTP handler which dump metrics in Prometheus format.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Create a new registry.
NewSet creates new set of metrics.
NewSummary creates and returns new summary in s with the given name, window and quantiles.
Setup starts a dedicated metrics server at the given address.

# Constants

No description provided by the author

# Variables

registry used in swarm.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Set is a set of metrics.
The standard implementation of a Registry is a mutex-protected map of names to metrics.

# Interfaces

No description provided by the author
A Registry holds references to a set of metrics by name and can iterate over them, calling callback functions provided by the user.
Stoppable defines the metrics which has to be stopped.
No description provided by the author

# Type aliases

DuplicateMetric is the error returned by Registry.Register when a metric already exists.