From 7212a6838e327a498a56b52f42ddd6ba0f80fce4 Mon Sep 17 00:00:00 2001 From: Brett Nawrocki Date: Wed, 2 Mar 2022 17:58:19 +0000 Subject: 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. --- src/mongo/db/s/global_index_metrics.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/s/global_index_metrics.cpp') 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 -- cgit v1.2.1