KAI Scheduler integration metrics

The official Datadog integration for monitoring KAI Scheduler. It collects 112 metrics.

Official summary

Monitor KAI Scheduler quotas, fair share, scheduling latency, and preemption

Metric types

  • gauge (value at a point in time): 67
  • count (occurrences in the interval): 45

Metrics

Descriptions are the official definitions, unedited.

MetricTypeUnit
kai.action.latency.millisecondsDuration of the last run of each scheduling action.gaugemillisecond
kai.action.podgroups.attempted.countNumber of pod groups each scheduling action attempted to schedule.count-
kai.action.podgroups.scheduled.countNumber of pod groups each scheduling action scheduled.count-
kai.action.scenarios.filtered.countNumber of scenarios each scheduling action filtered out before simulation.count-
kai.action.scenarios.simulated.countNumber of scenarios each scheduling action simulated.count-
kai.certwatcher.read_certificate.countNumber of TLS certificate reads by the controller-runtime certificate watcher.count-
kai.certwatcher.read_certificate_errors.countNumber of failed TLS certificate reads by the controller-runtime certificate watcher.count-
kai.controller.runtime.active_workersNumber of reconcile workers currently in use, per controller.gauge-
kai.controller.runtime.conversion_webhook_panics.countNumber of panics in the conversion webhook.count-
kai.controller.runtime.max_concurrent_reconcilesMaximum number of concurrent reconciles allowed, per controller.gauge-
kai.controller.runtime.reconcile.countNumber of reconciliations, per controller and result.count-
kai.controller.runtime.reconcile_errors.countNumber of reconciliations that returned an error, per controller.count-
kai.controller.runtime.reconcile_panics.countNumber of reconciliations that panicked, per controller.count-
kai.controller.runtime.reconcile_time.secondsDistribution of reconciliation durations, per controller.gaugesecond
kai.controller.runtime.reconcile_time.seconds.countNumber of timed reconciliations, per controller.count-
kai.controller.runtime.reconcile_time.seconds.sumTotal time spent reconciling, per controller.countsecond
kai.controller.runtime.reconcile_timeouts.countNumber of reconciliations that timed out, per controller.count-
kai.controller.runtime.terminal_reconcile_errors.countNumber of reconciliations that returned a terminal error, which is not retried, per controller.count-
kai.controller.runtime.webhook_latency.secondsDistribution of admission webhook request latencies, per webhook path.gaugesecond
kai.controller.runtime.webhook_latency.seconds.countNumber of timed admission webhook requests, per webhook path.count-
kai.controller.runtime.webhook_latency.seconds.sumTotal time spent processing admission webhook requests, per webhook path.countsecond
kai.controller.runtime.webhook_panics.countNumber of panics in admission webhooks.count-
kai.controller.runtime.webhook_requests.countNumber of admission webhook requests, per HTTP status code.count-
kai.controller.runtime.webhook_requests_in_flightNumber of admission webhook requests currently being served.gauge-
kai.evicted_pods.countNumber of pods evicted, by namespace, node pool, and action.count-
kai.go.gc.duration.seconds.countThe summary count of garbage collection cycles.count-
kai.go.gc.duration.seconds.quantileA summary of the pause duration of garbage collection cycles.gaugesecond
kai.go.gc.duration.seconds.sumThe sum of the pause duration of garbage collection cycles.countsecond
kai.go.gc.gogc.percentHeap growth percentage that triggers garbage collection, set by GOGC. 100 by default.gaugepercent
kai.go.gc.gomemlimit.bytesSoft memory limit of the Go runtime, set by GOMEMLIMIT. The maximum int64 value when unset.gaugebyte
kai.go.goroutinesNumber of goroutines that currently exist.gauge-
kai.go.infoAlways 1. The go_version tag holds the Go version the component was built with.gauge-
kai.go.memstats.alloc_bytesHeap memory allocated to objects and still in use.gaugebyte
kai.go.memstats.alloc_bytes.countHeap memory allocated since the process started, including memory already freed.countbyte
kai.go.memstats.buck_hash.sys_bytesMemory used by the profiling bucket hash table.gaugebyte
kai.go.memstats.frees.countNumber of heap objects freed.count-
kai.go.memstats.gc.sys_bytesMemory used for garbage collection metadata.gaugebyte
kai.go.memstats.heap_alloc.bytesHeap memory allocated to objects and still in use. Same value as kai.go.memstats.alloc_bytes.gaugebyte
kai.go.memstats.heap_idle.bytesHeap memory not in use, either free or returned to the operating system.gaugebyte
kai.go.memstats.heap_inuse.bytesHeap memory in use, including space reserved for objects but not yet used.gaugebyte
kai.go.memstats.heap_objectsNumber of allocated heap objects, live or not yet swept.gauge-
kai.go.memstats.heap_released.bytesHeap memory returned to the operating system.gaugebyte
kai.go.memstats.heap_sys.bytesHeap memory obtained from the operating system.gaugebyte
kai.go.memstats.mallocs.countNumber of heap objects allocated.count-
kai.go.memstats.mcache_inuse.bytesMemory in use by mcache structures, the per-processor allocation caches.gaugebyte
kai.go.memstats.mcache_sys.bytesMemory obtained from the operating system for mcache structures.gaugebyte
kai.go.memstats.mspan_inuse.bytesMemory in use by mspan structures, which track heap spans.gaugebyte
kai.go.memstats.mspan_sys.bytesMemory obtained from the operating system for mspan structures.gaugebyte
kai.go.memstats.next_gc.bytesTarget heap size of the next garbage collection cycle.gaugebyte
kai.go.memstats.other_sys.bytesMemory used for other runtime allocations, such as trace buffers and profiling.gaugebyte
kai.go.memstats.stack_inuse.bytesMemory used by goroutine stacks.gaugebyte
kai.go.memstats.stack_sys.bytesMemory obtained from the operating system for stacks, including OS thread stacks.gaugebyte
kai.go.memstats.sys.bytesTotal memory obtained from the operating system by the Go runtime.gaugebyte
kai.go.memstats.time_since_last_gc.secondsTime since the last garbage collection.gaugesecond
kai.go.threadsNumber of operating system threads created by the Go runtime.gauge-
kai.leader_election.master_statusWhether this replica holds the leader election lease: 1 for the leader, 0 for a standby.gauge-
kai.plugin.latency.millisecondsDuration of the last OnSessionOpen or OnSessionClose call of each scheduler plugin.gaugemillisecond
kai.preemption.attempts.countNumber of preemption attempts.countattempt
kai.process.cpu.seconds.countUser and system CPU time used by the component process.countsecond
kai.process.max_fdsMaximum number of file descriptors the component process can open.gauge-
kai.process.network_receive.bytes.countBytes received over the network by the component process.countbyte
kai.process.network_transmit.bytes.countBytes sent over the network by the component process.countbyte
kai.process.open_fdsNumber of file descriptors open by the component process.gauge-
kai.process.resident_memory.bytesResident memory size of the component process.gaugebyte
kai.process.uptime.secondsTime since the component process started.gaugesecond
kai.process.virtual_memory.bytesVirtual memory size of the component process.gaugebyte
kai.process.virtual_memory.max_bytesMaximum virtual memory available to the component process.gaugebyte
kai.queue.allocated.cpuResources currently allocated to the queue. Resource: CPU.gaugecore
kai.queue.allocated.gpuResources currently allocated to the queue. Resource: GPU.gaugedevice
kai.queue.allocated.memoryResources currently allocated to the queue. Resource: memory.gaugebyte
kai.queue.fair_share.cpuFair share of the queue computed by the scheduler in its last cycle. Resource: CPU.gaugecore
kai.queue.fair_share.gpuFair share of the queue computed by the scheduler in its last cycle. Resource: GPU.gaugedevice
kai.queue.fair_share.memoryFair share of the queue computed by the scheduler in its last cycle. Resource: memory.gaugebyte
kai.queue.infoAlways 1 for each queue known to the queue-controller.gauge-
kai.queue.quota.cpuQuota of the queue, from spec.resources. -1 means unlimited. Resource: CPU.gaugecore
kai.queue.quota.gpuQuota of the queue, from spec.resources. -1 means unlimited. Resource: GPU.gaugedevice
kai.queue.quota.memoryQuota of the queue, from spec.resources. -1 means unlimited. Resource: memory.gaugebyte
kai.queue.usage.cpuHistorical usage of the queue reported by the UsageDB. Units depend on the UsageDB configuration, and the value is 0 without one. Resource: CPU.gauge-
kai.queue.usage.gpuHistorical usage of the queue reported by the UsageDB. Units depend on the UsageDB configuration, and the value is 0 without one. Resource: GPU.gauge-
kai.queue.usage.memoryHistorical usage of the queue reported by the UsageDB. Units depend on the UsageDB configuration, and the value is 0 without one. Resource: memory.gauge-
kai.scenario_search.budget.action.secondsConfigured scenario search budget per action. 0 means unlimited.gaugesecond
kai.scenario_search.budget.generator.secondsConfigured scenario search budget per generator. 0 means unlimited.gaugesecond
kai.scenario_search.budget.job.secondsConfigured scenario search budget per job. 0 means unlimited.gaugesecond
kai.scenario_search.budget_exhausted.countNumber of times an action exhausted its scenario search budget.countevent
kai.scenario_search.duration.secondsDuration of bounded scenario search attempts per generator, in seconds.gaugesecond
kai.scenario_search.duration.seconds.countDuration of bounded scenario search attempts per generator, in seconds. Number of observations.count-
kai.scenario_search.duration.seconds.sumDuration of bounded scenario search attempts per generator, in seconds. Sum of observations.countsecond
kai.scenario_search.jobs.countNumber of jobs considered by bounded scenario search, by action, result and whether the budget was reduced.countjob
kai.scenario_search.scenarios.countNumber of bounded search scenarios, by action, generator and state.count-
kai.scheduling_cycle.latency.millisecondsDuration of the last full scheduling cycle, including all actions and binding.gaugemillisecond
kai.session.close.latency.millisecondsDuration of the last session close, including plugin cleanup.gaugemillisecond
kai.session.open.latency.millisecondsDuration of the last session open, including cluster snapshot and plugin initialization.gaugemillisecond
kai.task.bind_latency.millisecondsTime the binder takes to bind a pod, including bind request creation, in milliseconds.gaugemillisecond
kai.task.bind_latency.milliseconds.countTime the binder takes to bind a pod, including bind request creation, in milliseconds. Number of observations.count-
kai.task.bind_latency.milliseconds.sumTime the binder takes to bind a pod, including bind request creation, in milliseconds. Sum of observations.countmillisecond
kai.task.scheduling_latency.millisecondsTime from pod creation until the scheduler attempts to bind it, in milliseconds.gaugemillisecond
kai.task.scheduling_latency.milliseconds.countTime from pod creation until the scheduler attempts to bind it, in milliseconds. Number of observations.count-
kai.task.scheduling_latency.milliseconds.sumTime from pod creation until the scheduler attempts to bind it, in milliseconds. Sum of observations.countmillisecond
kai.usage_query.latency.millisecondsLatency of UsageDB queries, in milliseconds. Only reported when a UsageDB is configured.gaugemillisecond
kai.usage_query.latency.milliseconds.countLatency of UsageDB queries, in milliseconds. Only reported when a UsageDB is configured. Number of observations.count-
kai.usage_query.latency.milliseconds.sumLatency of UsageDB queries, in milliseconds. Only reported when a UsageDB is configured. Sum of observations.countmillisecond
kai.workqueue.adds.countNumber of items added to the work queue, per queue.count-
kai.workqueue.depthNumber of items waiting in the work queue, per queue.gauge-
kai.workqueue.longest_running_processor.secondsHow long the longest-running item in the work queue has been processed, per queue.gaugesecond
kai.workqueue.queue_duration.secondsDistribution of the time items wait in the work queue before being processed, per queue.gaugesecond
kai.workqueue.queue_duration.seconds.countNumber of items taken from the work queue, per queue.count-
kai.workqueue.queue_duration.seconds.sumTotal time items waited in the work queue before being processed, per queue.countsecond
kai.workqueue.retries.countNumber of items requeued for a retry, per queue.count-
kai.workqueue.unfinished_work.secondsTime spent on items still being processed, per queue. Large values indicate stuck workers.gaugesecond
kai.workqueue.work_duration.secondsDistribution of the time taken to process a work queue item, per queue.gaugesecond
kai.workqueue.work_duration.seconds.countNumber of work queue items processed, per queue.count-
kai.workqueue.work_duration.seconds.sumTotal time spent processing work queue items, per queue.countsecond

Official documentation

Official documentation for the KAI Scheduler integration

Metric names and descriptions are the official Datadog integration definitions (Copyright Datadog, Inc., BSD-3-Clause), reproduced unedited. The full license terms are on the About page.