vllm.v1.simple_kv_offload.metrics
¶
Prometheus metrics for SimpleCPUOffloadConnector.
The stats payload uses the same self-describing wire format as the offloading connector, so it survives IPC serialization without the metric classes on the receiving side.
Classes:
-
MetricName–Metric names for SimpleCPUOffloadConnector.
-
SimpleCPUOffloadPromMetrics–Prometheus registration and recording for SimpleCPUOffloadConnector.
-
SimpleCPUOffloadStats–Stats payload for SimpleCPUOffloadConnector.
MetricName
¶
Metric names for SimpleCPUOffloadConnector.
SimpleCPUOffloadPromMetrics
¶
Bases: KVConnectorPromMetrics
Prometheus registration and recording for SimpleCPUOffloadConnector.
Methods:
-
observe–Observe transfer statistics.
observe(transfer_stats_data, engine_idx=0)
¶
Observe transfer statistics.
SimpleCPUOffloadStats
dataclass
¶
Bases: KVConnectorStats
Stats payload for SimpleCPUOffloadConnector.
The data dict is structured as::
{
_StatsKey.TYPES: {name: _MetricType.*, ...},
_StatsKey.DATA: {name: {labelvalues: value, ...}, ...},
}
Counter values are summed when aggregating, gauge values keep the
latest snapshot, and unlabeled metrics use () as their
labelvalues tuple.
Methods:
-
increase_counter–Increase a counter on the stats payload.
-
reduce–Reduce the interval observations to a flat summary for logging.
-
set_gauge–Set a gauge snapshot on the stats payload.
_MetricType
¶
Type tags embedded in the serialized stats payload.
_StatsKey
¶
Top-level keys in the serialized stats dict.