A high-throughput and memory-efficient inference and serving engine for LLMs
Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git
Synced Nov 15, 07:15 UTC
[BugFix] Fix incorrect metrics shutdown error log message (#18992)
Signed-off-by: Nick Hill <nhill@redhat.com>
Nick Hill committed
May 31, 2025 at 20:42 UTC
2b102d51ad357903c502d72c1264fb2f724353f3
1 file changed
+5
-1
vllm/v1/metrics/prometheus.py
+5
-1
@@ -69,9 +69,13 @@ def unregister_vllm_metrics():
69
70
def shutdown_prometheus():
71
"""Shutdown prometheus metrics."""
72
+
73
+ path = _prometheus_multiproc_dir
74
+ if path is None:
75
+ return
76
try:
77
pid = os.getpid()
74
- multiprocess.mark_process_dead(pid)
78
+ multiprocess.mark_process_dead(pid, path)
79
logger.debug("Marked Prometheus metrics for process %d as dead", pid)
80
except Exception as e:
81
logger.error("Error during metrics cleanup: %s", str(e))