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