protected static Metric metricWithConfigProperties(Metric candidate,
                                                         ConfiguredMetric configuredMetric,
                                                         Set<ConsumerId> consumers) {
            Metric metric = candidate.clone();
            metric.setDimensions(extractDimensions(candidate.getDimensions(), configuredMetric.dimension()));
            metric.setConsumers(extractConsumers(consumers));

            if (configuredMetric.outputname() != null && !configuredMetric.outputname().id.isEmpty())
                metric.setName(configuredMetric.outputname());
            return metric;
        }
Returns the metrics to output for the given service, with updated timestamp
In order to include a metric, it must exist in the given map of metric to consumers.
Each returned metric will contain a collection of consumers that it should be routed to.
metrics-proxy/src/main/java/ai/vespa/metricsproxy/core/VespaMetrics.java