
Initial vendor list validated with empty $GOPATH and only master checked out; followed by `make` and verified that all binaries build properly. Updates require github.com/LK4D4/vndr tool. Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
16 lines
388 B
Go
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)
|
|
}
|