NVIDIA-first hardware telemetry chip + popup for ComfyUI. - Floating draggable chip with CPU / RAM / VRAM / GPU util - Popup with GPU and System tabs (util, temp, power, clocks, fan, processes, per-core) - HTTP endpoint GET /nvml_monitor/stats with 500ms server cache - Docker-aware: external_mb row accounts for VRAM used by other PID namespaces - Vanilla JS frontend, no build step - MIT licensed
18 lines
463 B
Python
18 lines
463 B
Python
"""ComfyUI-NVML-Monitor — NVIDIA + system telemetry chip and popup."""
|
|
from aiohttp import web
|
|
from server import PromptServer
|
|
|
|
from .monitor import collect
|
|
|
|
WEB_DIRECTORY = "./web"
|
|
NODE_CLASS_MAPPINGS: dict = {}
|
|
NODE_DISPLAY_NAME_MAPPINGS: dict = {}
|
|
|
|
|
|
@PromptServer.instance.routes.get("/nvml_monitor/stats")
|
|
async def _stats(_request):
|
|
return web.json_response(collect())
|
|
|
|
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|