prometheusMetrics
prometheusMetrics(
prom,options?):JobsMetrics
JobsMetrics on prom-client. Call it once per process: prom-client refuses
to register a metric name twice.
<prefix>job_duration_seconds{queue,job,ok}: one observation per attempt.<prefix>job_failures_total{queue,job,final}:final="false"is a retry (watch the rate),final="true"is a job in the dead-letter set (page).<prefix>sweep_failures_total{sweep}<prefix>sweep_last_success_timestamp_seconds{sweep}: alert ontime() - max by (sweep) (...).max, because only the replica that ran a tick moves its own series.