mirror of https://github.com/k3d-io/k3d
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
388 B
16 lines
388 B
3 years ago
|
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)
|
||
|
}
|