Job Metrics Reporting
Overview of the Job Metrics Dashboard for Slurm
Job Metrics Reporting

The Job Metrics Dashboard provides a comprehensive view of job details tailored specifically for Slurm. It serves as a lightweight analytics tool to provide insights into cluster usage, efficiency, and user activity.
This feature allows administrators and users to visualize job metrics, analyze historical data, and generate reports based on Slurm job accounting data collected by the Slurm History Ingestor.
Getting Started
Setting up job metrics is one path:
- Create a PostgreSQL database.
- Set
DATABASE_URLon the dashboard. It creates its tables on startup. - Run slurm-history-ingestor (container image, release binary, or from source) pointed at the same database.
- Job metrics turn on by themselves once the ingestor has written job history.
The Installation guide walks through each step. After that:
- Dashboard settings and GPU history: Configuration
- Ingestor modes, settings and systemd: Slurm History Ingestor
- Organization hierarchy and account mappings: Organization Hierarchy
The Metrics Page
The page has four tabs. They share one filter bar (date range, cluster, college, department, account, user, partition and QoS) and, on Overview and Explorer, a period selector (day, week, month, quarter or year) that sets how charts are bucketed. The URL holds the whole view, so Copy link shares exactly what you're looking at. Every table and chart has a CSV button.
- Overview: CPU hours, GPU hours, node hours, jobs, active users and accounts, median wait and utilization, each compared with the previous range of the same length. Below them: utilization (allocated, idle and unavailable cores), CPU hours by college (click a college to see its departments), top accounts, CPU hours by department, job size (CPU hours by cores per job), wall time used against the time limit, queue wait (median and 90th percentile) by partition, job outcomes, GPU hours by partition with their average GPU utilization, and, when any jobs were preempted, the nodes with the most preempted jobs and their preemption rate. Panels with nothing to show are replaced by a single note, for example when no jobs in the range used GPUs, or no accounts are mapped to the hierarchy.
- Explorer: pick one metric (CPU hours, GPU hours, node hours, jobs, average wait, average job size, average wall time, active users, utilization, memory efficiency or CPU efficiency) and one grouping (account, user, college, department, partition, QoS, job size, wall time, job state or cluster). Show it over time (stacked, the top five and the rest), as totals, or as a table with each group's total, share, trend and change against the previous range. Save view keeps the current view in your browser.
- Efficiency: CPU efficiency, memory efficiency, wall time used, GPU utilization, CPU hours lost to failed or timed-out jobs, and the share of jobs that ran under a minute. Histograms show how CPU hours, jobs and GPU hours spread across efficiency, and a table ranks users by the allocated CPU hours their jobs didn't use.
- Jobs: search finished jobs and open one to see its timeline (submitted, started, ended), what it requested against what it used, its nodes, allocated TRES and exit code. The search box takes a job ID or name and terms such as
user:alice,account:,partition:gpu,qos:,state:failed,node:gpu012,date:2026-10-01,gpu:yesandeff<25(CPU efficiency below 25%). A job ID search covers every date, not just the selected range.
How the Numbers Are Counted
- Usage is spread over the time a job ran. CPU hours (cores × run time), GPU hours and node hours count toward each period by the part of the job that fell in it, so a week-long job adds to every day of that week and a date range gets only the part inside it.
- Per-job figures count jobs that ended in the range: job counts, waits, wall time, outcomes and efficiency.
- Periods follow the metrics time zone (
NEXT_PUBLIC_METRICS_TIME_ZONE), and date ranges are whole days in it. - Utilization is allocated core hours divided by the core hours on nodes that could run jobs (not down, drained, in maintenance or powered down). Allocated core hours come from job history, so they follow every filter; the cluster's capacity is recorded by the dashboard itself (see Configuration) and follows the cluster filter only. Periods before the dashboard started recording capacity have no utilization.
- CPU efficiency is the CPU time a job used divided by cores × run time. It needs slurm-history-ingestor 1.1, which records each job's CPU time; with an older ingestor the page shows "needs slurm-history-ingestor 1.1" instead.
- Memory efficiency is peak memory (MaxRSS) divided by requested memory. Peak memory is recorded in sacct mode.
- GPU utilization comes from GPU history and is weighted by GPU hours.
- Jobs shorter than a minute are left out of the efficiency figures.
Architecture
The system consists of two main parts that share one PostgreSQL database:
- Slurm History Ingestor: A standalone Go service that fetches job history using sacct (recommended) or the Slurm REST API and stores it in the database.
- Dashboard: The Metrics page and admin hierarchy tools in this Next.js application, which query the database to visualize the metrics.
Each one creates the tables it needs when it starts.
What Gets Populated Where
The Slurm History Ingestor only syncs job data from Slurm. Other data is populated separately:
| Data | Source | How It's Populated |
|---|---|---|
Job history (job_history) | Slurm (sacct/API) | Automatically by the Go ingestor |
Users (users) | Slurm (sacct/API) | Automatically by the Go ingestor |
Accounts (accounts) | Slurm (sacct/API) | Automatically by the Go ingestor |
Organizations (organizations) | Your institution | Imported via Admin page or CSV |
Account mappings (account_mappings) | Your institution | Imported via Admin page or CSV |
GPU metrics (job_gpu_metrics) | Prometheus/DCGM | Captured by the dashboard every minute when GPU history is on |
Cluster capacity (cluster_capacity) | Slurm (slurmrestd) | Recorded by the dashboard with node history, for utilization |
Important:
The ingestor is intentionally focused only on Slurm job data. Organizational hierarchy is institution-specific metadata that must be imported separately. GPU metrics come from Prometheus, not Slurm.
Requirements
To enable the Job Metrics Dashboard, you need:
- PostgreSQL Database: Version 13 or newer, set as
DATABASE_URLon the dashboard. - Slurm History Ingestor: Running on a host with
sacctaccess (recommended) or Slurm REST API access, writing to the same database. See Slurm History Ingestor.
There's no flag to set. Admin → Plugins shows whether job metrics are on and, if not, why.
Hierarchy Configuration
The job metrics dashboard uses organizational hierarchy to group and filter data by department, college, or other organizational units. This is institution-specific metadata that is not populated by the Slurm History Ingestor — it must be configured separately via the Admin dashboard or CSV import.
For full details on setting up, importing, and managing your organizational hierarchy, see the Organization Hierarchy guide.