mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
f2614f2107
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
15 lines
388 B
Go
15 lines
388 B
Go
package metrics
|
|
|
|
import "github.com/prometheus/client_golang/prometheus"
|
|
|
|
// Register adds all the metrics in the provided namespace to the global
|
|
// metrics registry
|
|
func Register(n *Namespace) {
|
|
prometheus.MustRegister(n)
|
|
}
|
|
|
|
// Deregister removes all the metrics in the provided namespace from the
|
|
// global metrics registry
|
|
func Deregister(n *Namespace) {
|
|
prometheus.Unregister(n)
|
|
}
|