@Override
        public void accept(Metric metric) {
            MetricId key = metric.getName();
            MetricId alias = key;

            boolean isForwarded = false;
            for (ConfiguredMetric metricConsumer : getMetricDefinitions(vespaMetricsConsumerId)) {
                if (metricConsumer.id().equals(key)) {
                    alias = metricConsumer.outputname();
                    isForwarded = true;
                }
            }
            if (isForwarded) {
                sb.append(formatter.format(service, alias.id, metric.getValue())).append(" ");
            }
        }
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