diff options
author | Louis Williams <louis.williams@mongodb.com> | 2020-09-15 17:27:47 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-15 23:01:41 +0000 |
commit | f9f7f4832d8e94c233e7281790cbeb9b70129382 (patch) | |
tree | 69a6c19a4db4a0dd5305a3b02935ab39760a2152 /src/mongo/db/commands/pipeline_command.cpp | |
parent | 3ea1720a10ebac984a3d117cab721058bb7f170e (diff) | |
download | mongo-f9f7f4832d8e94c233e7281790cbeb9b70129382.tar.gz |
SERVER-50863 Collect resource consumption metrics for specified commands
Diffstat (limited to 'src/mongo/db/commands/pipeline_command.cpp')
-rw-r--r-- | src/mongo/db/commands/pipeline_command.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/commands/pipeline_command.cpp b/src/mongo/db/commands/pipeline_command.cpp index 6b542b421ae..738d161ce65 100644 --- a/src/mongo/db/commands/pipeline_command.cpp +++ b/src/mongo/db/commands/pipeline_command.cpp @@ -86,6 +86,10 @@ public: return true; } + bool collectsResourceConsumptionMetrics() const override { + return true; + } + class Invocation final : public CommandInvocation { public: Invocation(Command* cmd, |