Initial commit: Cockpit GPU monitor plugin for NVIDIA

Native, self-contained Cockpit page (plain HTML/JS, no build step) that
polls nvidia-smi via cockpit.spawn to show live GPU utilization, memory,
temperature, power, fan speed, ~5min history sparklines, and the list of
processes using the GPU. No background systemd service; data collection
only happens while the page is open.
This commit is contained in:
msaldain
2026-07-15 10:40:20 -03:00
commit 42720a70bc
7 changed files with 626 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
<!doctype html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>GPU</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="error-banner" class="error-banner" hidden></div>
<div id="gpu-container" class="gpu-container"></div>
<section class="process-section">
<h2>Procesos usando la GPU</h2>
<table class="process-table">
<thead>
<tr>
<th>PID</th>
<th>Proceso</th>
<th>Memoria (MB)</th>
</tr>
</thead>
<tbody id="process-table-body">
<tr class="empty-row"><td colspan="3">Sin procesos activos</td></tr>
</tbody>
</table>
</section>
<!-- cockpit.js: ruta relativa estable servida por el propio Cockpit (pkg/base1/cockpit.js) -->
<script src="../base1/cockpit.js"></script>
<script src="gpu.js"></script>
</body>
</html>