Skip to main content
Version: Next

Scheduler Metrics

HAMi exposes scheduler metrics on the configured scheduler metrics endpoint. 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 a reservation.

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, scoring, discovery, or cleanup failed.

A successful filter reservation uses failure_reason="none"; bind failures are reported by the failure and rollback counters.

CNCFHAMi is a CNCF Incubating project