vllm.distributed.kv_transfer.kv_connector.v1.metrics ¶
KVConnectorLogging ¶
Source code in vllm/distributed/kv_transfer/kv_connector/v1/metrics.py
__init__ ¶
__init__(kv_tranfer_config: KVTransferConfig)
Source code in vllm/distributed/kv_transfer/kv_connector/v1/metrics.py
log ¶
Log transfer metrics periodically, similar to throughput logging
Source code in vllm/distributed/kv_transfer/kv_connector/v1/metrics.py
observe ¶
Source code in vllm/distributed/kv_transfer/kv_connector/v1/metrics.py
KVConnectorStats dataclass
¶
Base class for KV Connector Stats, a container for transfer performance metrics or otherwise important telemetry from the connector. All sub-classes need to be serializable as stats are sent from worker to logger process.
Source code in vllm/distributed/kv_transfer/kv_connector/v1/metrics.py
aggregate ¶
aggregate(other: KVConnectorStats) -> KVConnectorStats
reduce ¶
Reduce the observations collected during a time interval to one or more representative values (eg avg/median/sum of the series). This is meant to be called by the logger to produce a summary of the stats for the last time interval.