Skip to content

vllm.distributed.kv_transfer.kv_connector.v1.mooncake.stats

Stats and Prometheus metrics for the Mooncake connector.

Classes:

MooncakeKVConnectorStats dataclass

Bases: KVConnectorStats

Container for Mooncake KV transfer performance metrics.

_lock serializes record_* against clone_and_reset so each row's appends are atomic and column lengths stay aligned. Writers run on the sender pool / receiver loop / sender loop; reader runs on the main worker thread.

MooncakePromMetrics

Bases: KVConnectorPromMetrics

Prometheus metrics for Mooncake KV Cache transfers.

Mooncake is push-based, so the histograms are only populated on the prefiller (P) instance; the counters are bumped wherever the failure was detected.