gstats Reference
gstats shows scheduler usage statistics for a user or time window.
Usage
bash
gstats [options]
gstats completion <shell>If no subcommand is given, gstats prints statistics immediately.
Common Examples
bash
# Current user's all-time stats
gstats
# Last 7 days for the current user
gstats --since 7d
# Another user
gstats --user alice
# All users in JSON
gstats --all-users --output json
# Export flat metrics for scripts
gstats --since today --output csvOptions
-u, --user <user>: filter by one user; default is the current user-a, --all-users: aggregate across all users-t, --since <when>: filter by time window such as1h,7d,30d,today, or an ISO timestamp-o, --output <format>:table,json, orcsv(default:table)
Output
Table Output
The default table view includes:
- Job totals and status counts
- Average wait time and runtime
- Total GPU-hours and peak GPU usage
- Success rate
- Top jobs by runtime when available
JSON Output
--output json prints the same statistics as structured JSON.
CSV Output
--output csv prints one metric,value row per metric.
Current CSV metrics:
total_jobscompleted_jobsfailed_jobscancelled_jobstimeout_jobsrunning_jobsqueued_jobsavg_wait_secsavg_runtime_secstotal_gpu_hoursjobs_with_gpusavg_gpus_per_jobpeak_gpu_usagesuccess_rate
gstats completion <shell>
Generate shell completion scripts.
bash
gstats completion bash
gstats completion zsh
gstats completion fish