Files
luet/vendor/github.com/docker/go-metrics/register.go
Ettore Di Giacinto f8989e464e Update vendor
2021-03-11 17:57:59 +01:00

16 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)
}