nf-prometheus

nf-prometheus is an open-source Nextflow plugin that exports workflow and task metrics in the Prometheus exposition format — designed for on-premise HPC clusters, where the head job often runs on a compute node behind a firewall that your Prometheus server cannot reach.

nf-prometheus Grafana dashboard: run status, per-process queue wait, wall time, CPUs and peak RSS

Three export modes

ModeBest for
Textfile collectorAir-gapped and firewalled clusters: writes a .prom file (atomic rename) for the node_exporter textfile collector on a shared filesystem. Zero network requirements.
PushgatewayLive monitoring during the run: pushes to your Prometheus Pushgateway, one metric group per run, batch-job lifecycle handled by the gateway.
HTTP /metricsClassic scrape, when the head job's node is reachable from your Prometheus server.

What you see

Quickstart

// nextflow.config
plugins {
    id 'nf-prometheus'
}

prometheus {
    path = '/shared/metrics/my-pipeline.prom'   // textfile mode
    // pushgateway = 'http://pushgateway:9091'  // live mode
    // httpPort = 9200                          // scrape mode
}

Zero dependencies beyond the JDK, Apache 2.0 licensed, minimum Nextflow 25.10, built on the v2 observer API.

Source and documentation: github.com/mcallisto/nf-prometheus