// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.admin.monitoring;

import ai.vespa.metricsproxy.core.VespaMetrics;
import com.google.common.collect.ImmutableList;

import static com.yahoo.vespa.model.admin.monitoring.NetworkMetrics.networkMetricSet;
import static com.yahoo.vespa.model.admin.monitoring.SystemMetrics.systemMetricSet;
import static com.yahoo.vespa.model.admin.monitoring.VespaMetricSet.vespaMetricSet;
import static java.util.Collections.emptyList;

/**
 * This class sets up the 'Vespa' metrics consumer.
 *
 * @author trygve
 * @author gjoranv
 */
public class VespaMetricsConsumer {

    public static final String VESPA_CONSUMER_ID = VespaMetrics.VESPA_CONSUMER_ID.id;

    private static final MetricSet defaultConsumerMetrics = new MetricSet("vespa-consumer-metrics",
                                                                          emptyList(),
                                                                          ImmutableList.of(vespaMetricSet,
                                                                                           systemMetricSet,
                                                                                           networkMetricSet));

    public static MetricsConsumer getVespaMetricsConsumer() {
        return new MetricsConsumer(VESPA_CONSUMER_ID, defaultConsumerMetrics);
    }

}

@@ -614,18 +614,66 @@
 consumer
+, which is mainly used for Yamas in hosted Vespa
 .%0A
-
  *%0A * @a
@@ -867,23 +867,21 @@
 tricSet 
-default
+vespa
 Consumer
@@ -1002,18 +1002,16 @@
         
-  
 emptyLis
@@ -1015,18 +1015,16 @@
 List(),%0A
-  
         
@@ -1209,18 +1209,16 @@
         
-  
 systemMe
@@ -1218,34 +1218,32 @@
 ystemMetricSet,%0A
-  
                 
@@ -1456,15 +1456,13 @@
 ID, 
-default
+vespa
 Cons

Rename default -> vespa and add clarifying comment.