protected static MetricsManager getMetricsManager() {
        MetricsManager metricsManager = TestUtil.createMetricsManager(vespaServices, getMetricsConsumers(), getApplicationDimensions(), getNodeDimensions());
        metricsManager.setExtraMetrics(List.of(
                new MetricsPacket.Builder(VESPA_NODE_SERVICE_ID)
                        .timestamp(Instant.now())
                        .putMetrics(List.of(new Metric(MetricId.toMetricId(CPU_METRIC), 12.345)))));
        return metricsManager;
    }
Base class for http handler tests.

@author gjoranv
metrics-proxy/src/test/java/ai/vespa/metricsproxy/http/HttpHandlerTestBase.java