summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/admin/monitoring/NetworkMetrics.java
blob: 2f9c97f0488398d4faf1ae8928d84ae7eebe967c (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
// Copyright Yahoo. 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.ImmutableSet;

import java.util.Set;

/**
 * @author gjoranv
 */
public class NetworkMetrics {

    public static final MetricSet networkMetricSet = createNetworkMetricSet();

    private static MetricSet createNetworkMetricSet() {
        Set<Metric> dockerNetworkMetrics =
                ImmutableSet.of(new Metric("net.in.bytes"),
                                new Metric("net.in.errors"),
                                new Metric("net.in.dropped"),
                                new Metric("net.out.bytes"),
                                new Metric("net.out.errors"),
                                new Metric("net.out.dropped")
                );

        return new MetricSet("network", dockerNetworkMetrics);
    }
}