mc support telemetry replay

The mc support telemetry replay command replays a file of telemetry data to an OpenTelemetry collector.

You can record a file to replay later with mc support telemetry record.

Syntax

Parameters

FILE

Required

Relative path from the local folder to the file with the telemetry data to replay.

SERVER

Required

IP address or FQDN and port of the OTLP-compatible collector that processes the data. For example, http://otlp.example.net:4318 or http://127.0.0.1:4318.

--private-key

Optional

Path to the private key to use to decrypt an encrypted telemetry file you want to replay. A valid key must be provided to replay encrypted files.

If not specified, defaults to support_private.pem.

--samples

Optional

The number of telemetry samples to truncate from the end of the telemetry file. The replay only reads the samples before the truncated samples.

If not specified, defaults to 0 to display all samples.

--timeshift

Optional

Time value by which to shift the first timestamp back from the current time. Valid time units are s, m, or h.

For example, --timeshift=2h45m to shift the time backwards 2 hours and 45 minutes.

If not specified, the replay does not apply a timeshift and replays the data with original timestamps.

Global Flags

This command supports any of the global flags.

Example

Send recorded traces to a local OTLP server with shifted timestamps

The following command reads the file stored at the AIStor server at alias myaistor in the bucket mybucket, then feeds the results to the OTLP server running at http://127.0.0.1:4318. The timestamps are shifted backwards 15 minutes.

mc support telemetry replay --timeshift=15m myaistor/mybucket/mytrace.enc http://127.0.0.1:4318