aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/storageserver/communicationmanagermetrics.h
blob: 990c19e32648d9982ff95f8fcf8158f0948e282c (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
30
31
32
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
/**
 * \class CommunicationManagerMetrics
 * \ingroup storageserver
 *
 * \brief Metrics for the communication manager.
 */

#pragma once

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

namespace storage {

struct CommunicationManagerMetrics : public metrics::MetricSet {
    metrics::LongAverageMetric queueSize;
    metrics::DoubleAverageMetric messageProcessTime;
    metrics::DoubleAverageMetric exceptionMessageProcessTime;
    metrics::LongCountMetric failedDueToTooLittleMemory;
    metrics::LongCountMetric convertToStorageAPIFailures;
    metrics::LongCountMetric bucketSpaceMappingFailures;
    metrics::DoubleAverageMetric sendCommandLatency;
    metrics::DoubleAverageMetric sendReplyLatency;

    CommunicationManagerMetrics(metrics::MetricSet* owner = nullptr);
    ~CommunicationManagerMetrics();
};

}