Telemetry export
Optimize publishes metrics and spans through OpenTelemetry from its service and training jobs. Use the metrics and spans in your OpenTelemetry export to build dashboards and alerts for every run in your training projects. To inspect a single run, see Run monitoring.
Your telemetry export includes every available signal, including cluster metrics from DCGM and metrics whose names start with ray_.
Choose signals
Use the run record for exact results, and telemetry for trends and alerts. Job resource attributes identify the run, attempt and training project. See the telemetry reference for metric names, units and attributes.
Alert on a stalled run
When a training job stops responding, for example on a stuck collective operation, it keeps exporting its step gauges at their last value, so the gauges look healthy. To detect a stalled job, alert on the step counters instead. The akka.optimize.training.rl.step.count metric and akka.optimize.training.sft.step.count increase by one for each step that the job completes, and the job exports the total at every interval while it runs. If the total stops increasing, the job has not completed a step.
In Prometheus, through a collector that uses remote write, the counters are named akka_optimize_training_rl_step_count_total and akka_optimize_training_sft_step_count_total. The following query matches a reinforcement job that has not completed a step in 15 minutes:
increase(akka_optimize_training_rl_step_count_total[15m]) == 0
Base the window on the usual step time of the run. When a job exits, its series stops, so the query stops matching it. A job that has not completed its first step has no series.
Reward graders
Monitor akka.optimize.training.rl.grader.duration and .failures by reward term. Failed scores count as zero, so check failures before interpreting a flat reward. For timeout or unavailable, check the judge’s availability. For unreadable, check its instructions. For ungradable, check the expected JSON labels.
Reward and completion-length distributions
Use akka.optimize.training.rl.rollout.reward and akka.optimize.training.rl.rollout.completion.length histograms for score and length percentiles. Check akka.optimize.training.rl.step.completion.clipped_ratio if completions often reach the answer limit; increase maxCompletionLength if the task needs longer answers.
Throughput and efficiency
A reinforcement run publishes the following metrics for each step:
-
Read
akka.optimize.training.rl.step.tokensfor the number of tokens that the step processed. -
Read
akka.optimize.training.rl.step.throughputfor those tokens per second. -
Read
akka.optimize.training.rl.step.mfufor the model FLOPs utilization (MFU) of the policy update, from 0 to 1.
Use these metrics to compare training speed. Compare MFU only between runs that train the same way; its estimate depends on the model and engine.
Find the GPUs a run uses
Use akka.optimize.training.job.placement to join a run’s metrics to its GPUs and nodes. The series identifies the run, attempt, process rank, role, and GPU UUID in hw.id.
The GPU UUID is the only key shared by the cluster’s GPU metrics, the job’s metrics, and a DCGM exporter. Do not join them by GPU index. Cluster GPU metrics count the devices visible to a container, while DCGM counts the devices on the host. The following query adds each worker’s role and rank to the cluster’s GPU utilization:
ray_node_gpus_utilization
* on(GpuUuid) group_left(akka_optimize_training_job_role, akka_optimize_training_job_rank)
label_replace(akka_optimize_training_job_placement{akka_optimize_training_run_id="$run"},
"GpuUuid", "$1", "hw_id", "(.+)")
Filter the placement to one run. When a GPU passes to another attempt or run, the old placement stays in the query lookback for a few minutes, and an unfiltered join finds two series for one GPU.
Rollout engine
For verl reinforcement runs, use the vLLM rollout metrics to inspect request queues, KV cache use, and generation speed. In cluster metrics, names start with ray_ and replace : with _, such as ray_vllm_num_requests_running. These metrics are unavailable under TRL.
Each series carries the run ID and attempt, as the job’s own metrics do, and the pod of the rollout server:
ray_vllm_kv_cache_usage_perc{akka_optimize_training_run_id="$run"}
GPU health
Use GPU health metrics to inspect power, utilization, memory, clocks, and faults. Each series carries the GPU UUID in hw.id.
The job uses OpenTelemetry hardware names such as hw.power, hw.temperature, hw.gpu.utilization, and hw.gpu.memory.usage. Other figures start with akka.optimize.training.gpu.
The akka.optimize.training.gpu.clock.throttle_reasons metric is a bitmask of NVML’s clock event reasons. A value greater than 1 means that something other than idleness held the clocks down. To read one reason, such as hardware slowdown (0x8), use floor(x / 8) % 2 in PromQL. The telemetry reference lists every bit.
The hw.gpu.memory.utilization metric is the fraction of the memory in use. The fraction of time that the memory was read or written, which NVML calls memory utilization, is akka.optimize.training.gpu.memory.activity.
Use akka.optimize.training.gpu.xid.errors to alert on GPU faults and akka.optimize.training.gpu.xid.last to read the latest code. Look up the code in NVIDIA’s XID reference before deciding whether to retry the job or report a hardware problem.
Capacity over time
Use akka.optimize.training.pool.devices.claimed for held and queued devices, and akka.optimize.training.project.devices.quota for project quotas. To identify current holders, run akka optimize training capacity; see Capacity and quotas.
Every service instance reports the same values under its own akka.optimize.training.instance attribute. Use max to aggregate across instances. Using sum would count the same devices more than once. For example, the following query reports the devices that claims hold on each pool:
max without (akka_optimize_training_instance) (akka_optimize_training_pool_devices_claimed{akka_optimize_training_claim_state="GRANTED"})
Reference
See Telemetry reference for the names, units, and attributes of metrics and spans that Optimize publishes.