aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/storageserver/fnet_metrics_wrapper.h
blob: 46e875755a4d6ea8daf6c0510e6aa850b442af10 (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
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/metrics/metricset.h>
#include <vespa/metrics/valuemetric.h>

#include <vespa/fnet/connection.h>

namespace storage {

// Simple wrapper around low-level fnet network metrics
class FnetMetricsWrapper : public metrics::MetricSet
{
private:
    metrics::LongValueMetric _num_connections;

public:
    explicit FnetMetricsWrapper(metrics::MetricSet* owner);
    ~FnetMetricsWrapper() override;
    void update_metrics();
};

}