mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-24 00:17:37 +01:00
SERVER-95787 Enable specifying the target port in trace profiler (#28089)
GitOrigin-RevId: d67a4b71b3010221ca763da6541a585c6a5ba870
This commit is contained in:
parent
4b3e27bebb
commit
d31e21e716
@ -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"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user