func CustomMustRegister(cs ...metrics.StableCollector) {
	defaultRegistry.CustomMustRegister(cs...)
	for _, c := range cs {
		prometheus.MustRegister(c)
	}
}
CustomMustRegister registers custom collectors but uses the global registry.
package legacyregistry
import (
	"net/http"
	"github.com/prometheus/client_golang/prometheus"
	"github.com/prometheus/client_golang/prometheus/promhttp"
	"k8s.io/component-base/metrics"
)
var (
	defaultRegistry = metrics.NewKubeRegistry()
	DefaultGatherer metrics.Gatherer = defaultRegistry
	Reset = defaultRegistry.Reset
	MustRegister = defaultRegistry.MustRegister
	RawMustRegister = defaultRegistry.RawMustRegister
	Register = defaultRegistry.Register
)
func init() {
	RawMustRegister(prometheus.NewProcessCollector(prometheus.ProcessCollectorOpts{}))
	RawMustRegister(prometheus.NewGoCollector())
}
func Handler() http.Handler {
	return promhttp.InstrumentMetricHandler(prometheus.DefaultRegisterer, promhttp.HandlerFor(defaultRegistry, promhttp.HandlerOpts{}))
}
func HandlerWithReset() http.Handler {
	return promhttp.InstrumentMetricHandler(
		prometheus.DefaultRegisterer,
		metrics.HandlerWithReset(defaultRegistry, metrics.HandlerOpts{}))
}
func CustomRegister(c metrics.StableCollector) error {
	err := defaultRegistry.CustomRegister(c)
	_ = prometheus.Register(c)
	return err
}