Prometheus Metrics

Prometheus metrics exported by Kueue

Kueue exposes prometheus metrics to monitor the health of the system and the status of ClusterQueues.

Kueue health

Use the following metrics to monitor the health of the kueue controllers:

Metric nameTypeDescriptionLabels
kueue_admission_attempts_totalCounterThe total number of attempts to admit workloads. Each admission attempt might try to admit more than one workload.result: possible values are success or inadmissible
kueue_admission_attempt_duration_secondsHistogramThe latency of an admission attempt.result: possible values are success or inadmissible

ClusterQueue status

Use the following metrics to monitor the status of your ClusterQueues:

Metric nameTypeDescriptionLabels
kueue_pending_workloadsGaugeThe number of pending workloads.cluster_queue: the name of the ClusterQueue
status: possible values are active or inadmissible
kueue_admitted_workloads_totalCounterThe total number of admitted workloads.cluster_queue: the name of the ClusterQueue
kueue_admission_wait_time_secondsHistogramThe time between a Workload was created until it was admitted.cluster_queue: the name of the ClusterQueue
kueue_admitted_active_workloadsGaugeThe number of admitted Workloads that are active (unsuspended and not finished)cluster_queue: the name of the ClusterQueue
kueue_cluster_queue_statusGaugeReports the status of the ClusterQueuecluster_queue: The name of the ClusterQueue
status: Possible values are pending, active or terminated. For a ClusterQueue, the metric only reports a value of 1 for one of the statuses.

Optional metrics

The following metrics are available only if metrics.enableClusterQueueResources is enabled in the manager’s configuration.

Metric nameTypeDescriptionLabels
kueue_cluster_queue_resource_usageGaugeReports the ClusterQueue’s total resource usagecohort: The cohort in which the queue belongs
cluster_queue: The name of the ClusterQueue
flavor: referenced flavor
resource: The resource name
kueue_cluster_queue_nominal_quotaGaugeReports the ClusterQueue’s resource quotacohort: The cohort in which the queue belongs
cluster_queue: The name of the ClusterQueue
flavor: referenced flavor
resource: The resource name
kueue_cluster_queue_borrowing_limitGaugeReports the ClusterQueue’s resource borrowing limitcohort: The cohort in which the queue belongs
cluster_queue: The name of the ClusterQueue
flavor: referenced flavor
resource: The resource name