Slurm Exporter - Accounting

Dedicated HPC accounting dashboard. Answers the key question: "Why is this user's priority low?" — by exposing FairShare components (`NormUsage`, `NormShares`) and their ratio directly in Grafana.

Slurm Exporter - Accounting screenshot 1
Slurm Exporter - Accounting screenshot 2
Slurm Exporter - Accounting screenshot 3

Dedicated HPC accounting dashboard. Answers the key question: "Why is this user's priority low?" — by exposing FairShare components (NormUsage, NormShares) and their ratio directly in Grafana.

Requires --collector.fairshare.user-metrics=true (default) for user-level panels. Filter by $account and $user template variables.

PanelTypeDescription
Running / Pending / CPUs / Active Users & AccountsstatCurrent cluster snapshot
Top Users — Running Jobs / CPUsbargaugetopk(15, slurm_user_jobs_running/cpus_running)
Top Accounts — Running CPUsbargaugetopk(10, slurm_account_cpus_running)
User FairShare Summarytableuser · account · FairShare · NormShares · NormUsage · Usage/Shares ratio · CPU-seconds
Users by FairShare (ascending)bargaugeLowest priority users at the top
Account SummarytableFairShare · NormShares · NormUsage · CPU-seconds per account
FairShare per Account Over TimetimeseriesAccount priority trend
Running Jobs / CPUs per UsertimeseriesUser activity history
Running Jobs per AccounttimeseriesAccount activity history
User FairShare Over TimetimeseriesTracks priority evolution — declining = overusing share

Requirements

  • Prometheus Slurm Exporter v1.7.0 or later (this dashboard uses metrics introduced in v1.7.0), scraped by Prometheus
  • Grafana 12+ with a Prometheus datasource
  • The dashboard uses a $datasource template variable, so it works with any Prometheus datasource name

Getting started

  1. Run the exporter on a host with a working Slurm client + munge setup (slurmctld host, login node or monitoring VM):
docker run -d --name slurm_exporter \
  -p 9341:9341 \
  -v /etc/slurm:/etc/slurm:ro \
  -v /var/run/munge:/var/run/munge:ro \
  -v /etc/munge/munge.key:/etc/munge/munge.key:ro \
  sckyzo/slurm-exporter:latest

Pre-compiled binaries, systemd unit and Kubernetes options are described in the project README.

  1. Add a scrape job to Prometheus:
scrape_configs:
  - job_name: slurm
    static_configs:
      - targets: ['slurm-exporter-host:9341']
  1. Import this dashboard and select your Prometheus datasource.

The full dashboard suite

This dashboard is part of a set of 10 dashboards maintained with the exporter:

#DashboardFocus
01Cluster OverviewSlurm HPC cluster overview: nodes, jobs, CPU/GPU utilization, partition breakdown.
02Jobs & QueueJob states, queue status, top users and accounts by CPU/job usage.
03Node DetailPer-node CPU and memory utilization by partition. Designed to scale from small clusters to 100k+ nodes.
04Cluster Usage StatisticsCluster utilization (CPU/Memory/GPU/Node), fairshare, jobs, users, accounts, scheduler. Based on gnetId 4323.
05Schedulerslurmctld scheduler cycle times, backfill stats, RPC operation breakdown.
06Reservations & LicensesReservation status, timeline, node health per reservation, and software license usage.
07Accounting (this one)HPC accounting: user and account resource consumption, FairShare analysis, top consumers, and priority diagnostics.
08Exporter HealthCollector success/failure status, scrape duration, and Slurm binary version info.
09Exporter PerformanceInternal performance dashboard for slurm_exporter: command durations, cache freshness, error rates, and scrape health. Use this to validate optimisations and detect slowdowns before they cause scrape failures.
10All Metrics ReferenceAll metrics exposed by slurm_exporter — reference dashboard for admins/users to copy panels into their own dashboards. GPU panels included (show 0 if no GPUs).

All JSON files, screenshots and Prometheus alert/recording rules are in monitoring/ on GitHub. Issues and contributions welcome.

Source file: 07-slurm-accounting.json | UID: slurm-accounting

Revisions
RevisionDescriptionCreated

Get this dashboard

Import the dashboard template

or

Download JSON

Datasource
Dependencies