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
33
34
35
36
37
38
39
40
41
42
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "content_proton_metrics.h"
namespace proton {
ContentProtonMetrics::ProtonExecutorMetrics::ProtonExecutorMetrics(metrics::MetricSet *parent)
: metrics::MetricSet("executor", {}, "Metrics for top-level executors shared among all document databases", parent),
proton("proton", this),
flush("flush", this),
match("match", this),
docsum("docsum", this),
shared("shared", this),
warmup("warmup", this),
field_writer("field_writer", this)
{
}
ContentProtonMetrics::SessionCacheMetrics::SessionCacheMetrics(metrics::MetricSet *parent)
: metrics::MetricSet("session_cache", {}, "Metrics for session caches (search / grouping requests)", parent),
search("search", this),
grouping("grouping", this)
{
}
ContentProtonMetrics::SessionCacheMetrics::~SessionCacheMetrics() = default;
ContentProtonMetrics::ProtonExecutorMetrics::~ProtonExecutorMetrics() = default;
ContentProtonMetrics::ContentProtonMetrics()
: metrics::MetricSet("content.proton", {}, "Search engine metrics", nullptr),
configGeneration("config.generation", {}, "The oldest config generation used by this process", this),
transactionLog(this),
resourceUsage(this),
executor(this),
sessionCache(this)
{
}
ContentProtonMetrics::~ContentProtonMetrics() = default;
}
|