aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/metrics/content_proton_metrics.cpp
blob: 5ec40b6f3a7192b563ce056cb59ff1c2fc438d75 (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
33
34
35
36
37
38
39
40
41
42
// Copyright Vespa.ai. 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;

}