diff options
author | Brett Nawrocki <brett.nawrocki@mongodb.com> | 2022-03-02 17:58:19 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-04 20:28:20 +0000 |
commit | 7212a6838e327a498a56b52f42ddd6ba0f80fce4 (patch) | |
tree | 2841ab8861c97b89a9025f4df69483f90ae252b5 /src/mongo/db/s/global_index_metrics.cpp | |
parent | f3672960cc89c6f7c6cd50cb18cfd8d8d116e43b (diff) | |
download | mongo-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.cpp | 5 |
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 |