blob: c0ea2822e4638c5b7826912839a0b32c0abeb254 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.admin.monitoring;
import com.google.common.collect.ImmutableList;
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 default 'Vespa' metrics consumer.
*
* @author trygve
* @author gjoranv
*/
public class DefaultMetricsConsumer {
public static final String VESPA_CONSUMER_ID = "Vespa";
private static final MetricSet defaultConsumerMetrics = new MetricSet("default-consumer",
emptyList(),
ImmutableList.of(vespaMetricSet, systemMetricSet));
@SuppressWarnings("UnusedDeclaration")
public static MetricsConsumer getDefaultMetricsConsumer() {
return new MetricsConsumer(VESPA_CONSUMER_ID, defaultConsumerMetrics);
}
}
|