private List<ConfiguredMetric> convert(List<Consumer.Metric> configMetrics) {
        List<ConfiguredMetric> metrics = new ArrayList<>(configMetrics.size());
        configMetrics.forEach(m -> metrics.add(new ConfiguredMetric(m)));
        return metrics;
    }
Helper function to create mapping from metric to consumers.
TODO: consider reversing the mapping in metrics-consumers.def instead: metric{}.consumer[]
metrics-proxy/src/main/java/ai/vespa/metricsproxy/core/MetricsConsumers.java