private static Map<DimensionId, String> extractDimensions(Map<DimensionId, String> dimensions, List<Dimension> configuredDimensions) {
            if ( ! configuredDimensions.isEmpty()) {
                Map<DimensionId, String> dims = new HashMap<>(dimensions);
                configuredDimensions.forEach(d -> dims.put(d.key(), d.value()));
                dimensions = Map.copyOf(dims);
            }
            return dimensions;
        }
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