blob: eb6f74683759294566b0bbb18c0d6f22e5e00f4d (
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.
#pragma once
#include <vespa/metrics/countmetric.h>
#include <vespa/metrics/metricset.h>
#include <vespa/metrics/valuemetric.h>
#include <vespa/searchcore/proton/matching/sessionmanager.h>
namespace proton {
/**
* Metrics for session manager cache (search or grouping requests).
*/
struct SessionManagerMetrics : metrics::MetricSet
{
metrics::LongCountMetric numInsert;
metrics::LongCountMetric numPick;
metrics::LongCountMetric numDropped;
metrics::LongValueMetric numCached;
metrics::LongCountMetric numTimedout;
void update(const proton::matching::SessionManager::Stats &stats);
SessionManagerMetrics(const vespalib::string &name, metrics::MetricSet *parent);
~SessionManagerMetrics();
};
}
|