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

#include "communicationmanagermetrics.h"

using namespace metrics;
namespace storage {

CommunicationManagerMetrics::CommunicationManagerMetrics(MetricSet* owner)
    : MetricSet("communication", {}, "Metrics for the communication manager", owner),
      queueSize("messagequeue", {}, "Size of input message queue.", this),
      messageProcessTime("messageprocesstime", {}, "Time transport thread uses to process a single message", this),
      exceptionMessageProcessTime("exceptionmessageprocesstime", {},
                                  "Time transport thread uses to process a single message "
                                  "that fails with an exception thrown into communication manager", this),
      failedDueToTooLittleMemory("toolittlememory", {}, "Number of messages failed due to too little memory available", this),
      convertToStorageAPIFailures("convertfailures", {},
                                  "Number of messages that failed to get converted to storage API messages", this),
      bucketSpaceMappingFailures("bucket_space_mapping_failures", {},
                                 "Number of messages that could not be resolved to a known bucket space", this),
      sendCommandLatency("sendcommandlatency", {}, "Average ms used to send commands to MBUS", this),
      sendReplyLatency("sendreplylatency", {}, "Average ms used to send replies to MBUS", this)
{
}

CommunicationManagerMetrics::~CommunicationManagerMetrics() = default;

}