Skip to main content
Version: v2.11.0

Scheduler Metrics

HAMi exposes scheduler metrics on the configured scheduler metrics endpoint. Every metric on this page also has the label zone="vGPU".

Scheduler state​

MetricMeaning
hami_scheduler_is_leaderWhether this scheduler instance is the leader.
hami_scheduler_cache_syncedWhether the scheduler leader instance has synced its node/device cache at least once. It stays 1 when a later sync fails.

Allocation outcomes​

The allocation outcome metrics use only bounded label values:

MetricMeaning
hami_scheduler_allocations_totalSuccessful device reservations recorded by the filter phase.
hami_scheduler_allocation_failures_totalFilter and bind allocation failures.
hami_scheduler_bind_rollbacks_totalBind failures that release the node locks taken for the pod.

A bind that fails with lookup releases the pod's reservation without counting a rollback.

The labels are phase, device_type, and failure_reason. They never contain pod, namespace, node, UUID, or request identifiers. failure_reason uses this complete, fixed set:

ValueMeaning
noneThe operation succeeded.
no_fitNo candidate node could satisfy the device request.
lookupA required pod or node could not be read from the scheduler cache.
identityThe bind request did not match the current pod identity or target.
lockDevice reservation locking failed.
annotation_patchA required pod annotation update failed.
bindAnother bind operation failed.
internalInternal usage or scoring failed.

A successful filter reservation uses failure_reason="none". Bind failures are reported by the failure counter, and also by the rollback counter when the bind releases node locks.

CNCFHAMi is a CNCF Incubating project