mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-27 23:27:11 +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])
|
command.extend(["--username", args.username])
|
||||||
if args.password:
|
if args.password:
|
||||||
command.extend(["--password", 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:
|
if args.tls:
|
||||||
command.append("--tls")
|
command.append("--tls")
|
||||||
if args.tlsAllowInvalidCertificates:
|
if args.tlsAllowInvalidCertificates:
|
||||||
@ -68,6 +72,16 @@ def main():
|
|||||||
dest="password",
|
dest="password",
|
||||||
help="Password for authentication",
|
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(
|
parser.add_argument(
|
||||||
"--tls", dest="tls", action="store_true", help="Use TLS for all connections"
|
"--tls", dest="tls", action="store_true", help="Use TLS for all connections"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user