NAME
sys-monitor-lite - Collect lightweight system metrics as JSON
SYNOPSIS
sys-monitor-lite --once
sys-monitor-lite --interval 5 --collect cpu,mem --output jsonl
DESCRIPTION
Collects metrics exposed by Sys::Monitor::Lite and prints them as JSON or JSON Lines. Use --collect to limit which subsystems are gathered.
OPTIONS
- --interval NUM
-
Collect every NUM seconds. Defaults to 5 seconds when running continuously.
- --once
-
Collect a single sample (default when
--intervalis not provided). - --collect LIST
-
Comma-separated list of metrics to gather (e.g.
cpu,mem,disk). Available metrics: system, cpu, load, mem, disk, net. - --output FORMAT
-
Output format:
json(default) orjsonlfor JSON Lines. - --pretty
-
Pretty-print JSON output (ignored for JSON Lines).
- --help
-
Show this help message.
AUTHOR
Shingo Kawamura <kawamurashingo@cpan.org>
COPYRIGHT AND LICENSE
MIT License. See the LICENSE file bundled with this distribution.