metrics¶
Inspect runtime metrics.
Syntax¶
Arguments¶
metrics does not accept positional arguments; use subcommands.
Options¶
| Short | Long | Default | Description |
|---|---|---|---|
| - | --help |
- | Show help and exit |
Subcommands¶
metrics show¶
Display collected runtime metrics.
| Short | Long | Default | Description |
|---|---|---|---|
| - | --json |
False |
Output metrics as JSON |
| - | --reset |
False |
Reset metrics after displaying |
metrics export¶
Export collected metrics to a JSON file.
| Short | Long | Default | Description |
|---|---|---|---|
-o |
--output PATH |
~/.autoship/metrics.json |
Path to write the metrics JSON file |
| - | --reset |
False |
Reset metrics after exporting |
Examples¶
Show metrics:
Show metrics as JSON and reset:
Export metrics:
Output Notes / Common Errors¶
- Metrics are collected locally and never uploaded unless telemetry is explicitly enabled.
- Use
--resetto clear metrics after inspection.