Skip to content

Add Prometheus metric for stuck running jobs #824

Description

@matthew-li

Add a custom gauge tracking jobs that are in RUNNING state but whose
startdate exceeds the maximum wall clock time — indicating the Slurm
plugin has stopped delivering completion callbacks.

mybrc_stuck_running_jobs{partition="savio4"} 3

The gauge can be defined with prometheus_client.Gauge and will be
included in the existing /metrics endpoint via the shared registry.
Alert when this is non-zero.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions