summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/global_index_metrics.cpp
diff options
context:
space:
mode:
authorBrett Nawrocki <brett.nawrocki@mongodb.com>2022-03-02 17:58:19 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-03-04 20:28:20 +0000
commit7212a6838e327a498a56b52f42ddd6ba0f80fce4 (patch)
tree2841ab8861c97b89a9025f4df69483f90ae252b5 /src/mongo/db/s/global_index_metrics.cpp
parentf3672960cc89c6f7c6cd50cb18cfd8d8d116e43b (diff)
downloadmongo-7212a6838e327a498a56b52f42ddd6ba0f80fce4.tar.gz
SERVER-63728 Differentiate observers by role in cumulative metrics
Differentiate observers by role so that recipient and coordinator estimates can be reported separately. Additionally, split reporting into high/low estimates and replace placeholder values in the ServerStatus report with those estimates.
Diffstat (limited to 'src/mongo/db/s/global_index_metrics.cpp')
-rw-r--r--src/mongo/db/s/global_index_metrics.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/s/global_index_metrics.cpp b/src/mongo/db/s/global_index_metrics.cpp
index a0d4e1e9443..d697063a0b1 100644
--- a/src/mongo/db/s/global_index_metrics.cpp
+++ b/src/mongo/db/s/global_index_metrics.cpp
@@ -61,7 +61,8 @@ GlobalIndexMetrics::GlobalIndexMetrics(UUID uuid,
cumulativeMetrics) {}
std::string GlobalIndexMetrics::createOperationDescription() const noexcept {
- return fmt::format(
- "GlobalIndexMetrics{}Service {}", getRoleName(_role), _instanceId.toString());
+ return fmt::format("GlobalIndexMetrics{}Service {}",
+ ShardingDataTransformMetrics::getRoleName(_role),
+ _instanceId.toString());
}
} // namespace mongo