mc admin trace
Description
The mc admin trace
command displays API operations occurring on the target MinIO deployment.
Use mc admin
on MinIO Deployments Only
MinIO does not support using mc admin
commands with other
S3-compatible services, regardless of their claimed compatibility with MinIO
deployments.
Examples
Monitor All API operations
Use mc admin trace
to monitor API operations on a MinIO deployment:
mc admin trace -a ALIAS
See Calls that Return 503 Errors
Use mc admin trace
to monitor API operations that return a service unavailable 503 error:
mc admin trace -v --status-code 503 ALIAS
See Console Trace for a Path
Use mc admin trace
to monitor activity for a specific path:
mc admin trace --path my-bucket/my-prefix/* ALIAS
See Console Trace for a Response Size Greater than 1Mb
Use mc admin trace
to monitor responses over a specific size:
mc admin trace --filter-response --filter-size 1Mb ALIAS
See Console Trace for a Request Operation Durations Greater than 5ms
Use mc admin trace
to monitor long operations:
mc admin trace --filter-duration --filter-size 5ms ALIAS
Syntax
mc admin trace
has the following syntax:
mc admin trace [FLAGS] TARGET
mc admin trace
supports the following argument:
- TARGET
Specify the
alias
of a configured MinIO deployment for which to monitor API operations.
- --all, a
Returns all traffic on the MinIO deployment, including internode traffic between MinIO servers.
- --call
Traces only matching client operation or call types. For example, the following command only traces operations of the type
scanner
.mc admin trace --call scanner TARGET
Valid call types include:
batch-keyrotation
batch-replication
bootstrap
decommission
ftp
healing
ilm
internal
os
rebalance
replication-resync
s3
scanner
storage
If not specified, MinIO returns call types of
s3
.
- --filter-request
Trace client operations or calls with request size greater than the specified
--filter-size
value.Must be used with
--filter-size
flag.
- --filter-response
Trace client operations or calls with response size greater than the specified
--filter-size
value.Must be used with
--filter-size
flag.
- --filter-size
Size limit of a filtered client operation or call.
Must be used with either
--filter-request
or--filter-response
flag.Valid units include:
- --request-query
Returns calls matching the supplied request query parameter. This debug option should only be used at the direction of MinIO Support.
- --response-threshold
Takes a time string as a value, such as
5ms
. Returns only calls with a response time greater than the supplied threshold.If not specified, MinIO returns calls with a response time greater than 5ms.
- --stats
Accumulates aggregated statistics for each traced function call during the current trace session.
The output table includes the following columns.
Accumulate stats, such as name, count, duration, min time, max time, time to first byte, or errors. Accumulates up to 15 stat entries.
Global Flags
This command supports any of the global flags.