summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/pipeline_command.cpp
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2020-09-15 17:27:47 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-15 23:01:41 +0000
commitf9f7f4832d8e94c233e7281790cbeb9b70129382 (patch)
tree69a6c19a4db4a0dd5305a3b02935ab39760a2152 /src/mongo/db/commands/pipeline_command.cpp
parent3ea1720a10ebac984a3d117cab721058bb7f170e (diff)
downloadmongo-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.cpp4
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,