blob: 31b93a2839a6b42d68338bda1023c40cda7fb8ab (
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 Yahoo. 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();
};
}
|