aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--annotations/pom.xml5
-rw-r--r--searchcore/src/vespa/searchcore/proton/metrics/documentdb_tagged_metrics.cpp6
-rw-r--r--searchcore/src/vespa/searchcore/proton/metrics/documentdb_tagged_metrics.h3
3 files changed, 9 insertions, 5 deletions
diff --git a/annotations/pom.xml b/annotations/pom.xml
index 3321dddaf8c..da3d69199bd 100644
--- a/annotations/pom.xml
+++ b/annotations/pom.xml
@@ -37,11 +37,6 @@
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-deploy-plugin</artifactId>
- <version>2.5</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
diff --git a/searchcore/src/vespa/searchcore/proton/metrics/documentdb_tagged_metrics.cpp b/searchcore/src/vespa/searchcore/proton/metrics/documentdb_tagged_metrics.cpp
index ab0b187272a..335b6855d48 100644
--- a/searchcore/src/vespa/searchcore/proton/metrics/documentdb_tagged_metrics.cpp
+++ b/searchcore/src/vespa/searchcore/proton/metrics/documentdb_tagged_metrics.cpp
@@ -120,6 +120,9 @@ DocumentDBTaggedMetrics::MatchingMetrics::RankProfileMetrics::RankProfileMetrics
size_t numDocIdPartitions,
MetricSet *parent)
: MetricSet("rank_profile", {{"rankProfile", name}}, "Rank profile metrics", parent),
+ docsMatched("docs_matched", "", "Number of documents matched", this),
+ docsRanked("docs_ranked", "", "Number of documents ranked (first phase)", this),
+ docsReRanked("docs_reranked", "", "Number of documents re-ranked (second phase)", this),
queries("queries", "", "Number of queries executed", this),
limitedQueries("limited_queries", "", "Number of queries limited in match phase", this),
matchTime("match_time", "", "Average time (sec) for matching a query", this),
@@ -162,6 +165,9 @@ DocumentDBTaggedMetrics::MatchingMetrics::RankProfileMetrics::DocIdPartition::up
void
DocumentDBTaggedMetrics::MatchingMetrics::RankProfileMetrics::update(const MatchingStats &stats)
{
+ docsMatched.inc(stats.docsMatched());
+ docsRanked.inc(stats.docsRanked());
+ docsReRanked.inc(stats.docsReRanked());
queries.inc(stats.queries());
limitedQueries.inc(stats.limited_queries());
matchTime.addValueBatch(stats.matchTimeAvg(), stats.matchTimeCount(),
diff --git a/searchcore/src/vespa/searchcore/proton/metrics/documentdb_tagged_metrics.h b/searchcore/src/vespa/searchcore/proton/metrics/documentdb_tagged_metrics.h
index 2392c82fc0f..7a0de216343 100644
--- a/searchcore/src/vespa/searchcore/proton/metrics/documentdb_tagged_metrics.h
+++ b/searchcore/src/vespa/searchcore/proton/metrics/documentdb_tagged_metrics.h
@@ -118,6 +118,9 @@ struct DocumentDBTaggedMetrics : metrics::MetricSet
using DocIdPartitions = std::vector<DocIdPartition::UP>;
using UP = std::unique_ptr<RankProfileMetrics>;
+ metrics::LongCountMetric docsMatched;
+ metrics::LongCountMetric docsRanked;
+ metrics::LongCountMetric docsReRanked;
metrics::LongCountMetric queries;
metrics::LongCountMetric limitedQueries;
metrics::DoubleAverageMetric matchTime;