in pkg/registry/registry.go [227:238]
func (r *Registry) ListAllCustomMetrics() []provider.CustomMetricInfo {
r.lock.RLock()
defer r.lock.RUnlock()
infos := make([]provider.CustomMetricInfo, len(r.customMetrics))
count := 0
for k := range r.customMetrics {
infos[count] = k
count++
}
r.logger.V(1).Info("Custom metrics served by the adapter", "count", len(infos))
return infos
}