private MetricsPacket.Builder[] getMetricsBuildersAsArray(List<VespaService> services, Instant startTime, ConsumerId consumerId) {
        List<MetricsPacket.Builder> builders = getMetricsAsBuilders(services, startTime, consumerId);
        return builders.toArray(new MetricsPacket.Builder[0]);
    }
Returns the metrics for the given services. The empty list is returned if no services are given.

@param services the services to retrieve metrics for
@return metrics for all matching services
metrics-proxy/src/main/java/ai/vespa/metricsproxy/core/MetricsManager.java