diff --git a/buildscripts/tracing_profiler/profile_mongod.py b/buildscripts/tracing_profiler/profile_mongod.py index d25eaf10d26..06429c9866a 100755 --- a/buildscripts/tracing_profiler/profile_mongod.py +++ b/buildscripts/tracing_profiler/profile_mongod.py @@ -22,6 +22,10 @@ def get_profiler_stats(args): command.extend(["--username", args.username]) if args.password: command.extend(["--password", args.password]) + if args.host: + command.extend(["--host", args.host]) + if args.port: + command.extend(["--port", args.port]) if args.tls: command.append("--tls") if args.tlsAllowInvalidCertificates: @@ -68,6 +72,16 @@ def main(): dest="password", help="Password for authentication", ) + parser.add_argument( + "--host", + dest="host", + help="Server to connect to", + ) + parser.add_argument( + "--port", + dest="port", + help="Port to connect to", + ) parser.add_argument( "--tls", dest="tls", action="store_true", help="Use TLS for all connections" )