public String getMetricsByConfigId(String configId) {
        List<VespaService> services = vespaServices.getInstancesById(configId);
        vespaServices.updateServices(services);

        return vespaMetrics.getMetricsAsString(services);
    }
Returns all metrics for the given service that are whitelisted for the given consumer.
metrics-proxy/src/main/java/ai/vespa/metricsproxy/core/MetricsManager.java