@Test
    void vespa_consumer_can_be_amended_via_admin_object() {
        VespaModel model = getModel(servicesWithAdminOnly(), hosted);
        var additionalMetric = new Metric("additional-metric");
        model.getAdmin().setAdditionalDefaultMetrics(new MetricSet("amender-metrics", List.of(additionalMetric)));

        ConsumersConfig config = consumersConfigFromModel(model);
        assertEquals(numMetricsForVespaConsumer + 1, config.consumer(0).metric().size());

        ConsumersConfig.Consumer vespaConsumer = requireConsumer(config, MetricsConsumer.vespa);
        assertTrue(checkMetric(vespaConsumer, additionalMetric), "Did not contain additional metric");

        ConsumersConfig.Consumer defaultConsumer = requireConsumer(config, MetricsConsumer.defaultConsumer);
        assertFalse(checkMetric(defaultConsumer, additionalMetric), "Contained additional metric");

        ConsumersConfig.Consumer vespa9Consumer = requireConsumer(config, MetricsConsumer.vespa9);
        assertTrue(checkMetric(vespa9Consumer, additionalMetric), "Did not contain additional metric");
    }
Tests for {@link MetricsProxyContainerCluster} related to metrics consumers.

@author gjoranv
config-model/src/test/java/com/yahoo/vespa/model/admin/metricsproxy/MetricsConsumersTest.java