kiosko-plugin-gpu 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/index.js +82 -49
- package/docs/cards.png +0 -0
- package/docs/history.png +0 -0
- package/docs/vram.png +0 -0
- package/kiosko-manifest.json +872 -0
- package/package.json +17 -3
package/README.md
CHANGED
|
@@ -20,6 +20,12 @@ npm install --prefix ~/.config/kiosko/plugins kiosko-plugin-gpu
|
|
|
20
20
|
|
|
21
21
|
- A GPU and its tool: `nvidia-smi` (NVIDIA driver), `rocm-smi` or `amd-smi` (ROCm), or the amdgpu / i915 / xe drivers for sysfs readings. For another machine: key-based `ssh` to it (the CLIs run there), or a Prometheus URL serving [DCGM exporter](https://github.com/NVIDIA/dcgm-exporter) or [nvidia_gpu_exporter](https://github.com/utkuozdemir/nvidia_gpu_exporter) metrics.
|
|
22
22
|
|
|
23
|
+
## What it does on your machine
|
|
24
|
+
|
|
25
|
+
- **Internet**: contacts the ones you set in its options.
|
|
26
|
+
- **Runs**: `nvidia-smi`, `rocm-smi`, `amd-smi`, `ssh`.
|
|
27
|
+
- **Reads**: `/sys/class/drm`.
|
|
28
|
+
|
|
23
29
|
## Widgets
|
|
24
30
|
|
|
25
31
|
### GPU cards — `gpu/cards`
|
package/dist/index.js
CHANGED
|
@@ -371,7 +371,9 @@ function hostLabel(o) {
|
|
|
371
371
|
async function readGpus(o, d = DEFAULT_DEPS, signal, now = Date.now()) {
|
|
372
372
|
const label = hostLabel(o);
|
|
373
373
|
const base = { gpus: [], history: {}, at: now, ...label ? { label } : {} };
|
|
374
|
-
|
|
374
|
+
const because = (text2) => ({ ...base, available: false, reason: text2.en, reasonText: text2 });
|
|
375
|
+
if (o.ssh && !validSshHost(o.ssh)) return because({ en: `invalid ssh host: ${o.ssh}`, es: `host ssh no v\xE1lido: ${o.ssh}`, de: `ung\xFCltiger ssh-Host: ${o.ssh}`, "zh-Hant": `ssh \u4E3B\u6A5F\u7121\u6548\uFF1A${o.ssh}`, "zh-Hans": `ssh \u4E3B\u673A\u65E0\u6548\uFF1A${o.ssh}` });
|
|
376
|
+
if (o.backend === "prometheus" && !o.url) return because({ en: "no metrics URL set", es: "falta la URL de las m\xE9tricas", de: "keine Metrik-URL eingetragen", "zh-Hant": "\u5C1A\u672A\u8A2D\u5B9A\u6307\u6A19 URL", "zh-Hans": "\u5C1A\u672A\u8BBE\u7F6E\u6307\u6807 URL" });
|
|
375
377
|
const nvidia = ["nvidia", () => readNvidia(o, d, signal)];
|
|
376
378
|
const amd = ["amd", () => readAmdCli(o, d, signal)];
|
|
377
379
|
const amdSys = ["amd-sysfs", () => readSysfs(d.sysRoot, "amd")];
|
|
@@ -379,7 +381,7 @@ async function readGpus(o, d = DEFAULT_DEPS, signal, now = Date.now()) {
|
|
|
379
381
|
const prom = ["prometheus", () => readPrometheus(o, d, signal)];
|
|
380
382
|
const local = (a) => o.ssh ? [] : a;
|
|
381
383
|
const plan = o.backend === "nvidia" ? [nvidia] : o.backend === "amd" ? [amd, ...local([amdSys])] : o.backend === "intel" ? local([intel]) : o.backend === "prometheus" ? [prom] : [...o.url ? [prom] : [], nvidia, amd, ...local([amdSys, intel])];
|
|
382
|
-
if (!plan.length) return {
|
|
384
|
+
if (!plan.length) return because({ en: "the intel back end reads sysfs and only works locally", es: "el modo intel lee sysfs y s\xF3lo funciona en local", de: "das Intel-Backend liest sysfs und funktioniert nur lokal", "zh-Hant": "intel \u5F8C\u7AEF\u8B80\u53D6 sysfs\uFF0C\u53EA\u80FD\u5728\u672C\u6A5F\u4F7F\u7528", "zh-Hans": "intel \u540E\u7AEF\u8BFB\u53D6 sysfs\uFF0C\u53EA\u80FD\u5728\u672C\u673A\u4F7F\u7528" });
|
|
383
385
|
const reasons = [];
|
|
384
386
|
for (const [name, attempt] of plan) {
|
|
385
387
|
try {
|
|
@@ -391,7 +393,8 @@ async function readGpus(o, d = DEFAULT_DEPS, signal, now = Date.now()) {
|
|
|
391
393
|
reasons.push(`${name}: ${e instanceof Error ? e.message : String(e)}`);
|
|
392
394
|
}
|
|
393
395
|
}
|
|
394
|
-
|
|
396
|
+
if (o.backend === "auto" && reasons.every((r) => /not found|no GPU/.test(r))) return because({ en: "no GPU found", es: "no se encontr\xF3 ninguna GPU", de: "keine GPU gefunden", "zh-Hant": "\u627E\u4E0D\u5230 GPU", "zh-Hans": "\u672A\u627E\u5230 GPU" });
|
|
397
|
+
return { ...base, available: false, reason: reasons.join("; ") };
|
|
395
398
|
}
|
|
396
399
|
|
|
397
400
|
// src/gpu.ts
|
|
@@ -461,19 +464,26 @@ function pushHistory(h, gpus, now, windowMs, minGapMs = 4e3) {
|
|
|
461
464
|
// src/draw.ts
|
|
462
465
|
var clamp = (v, lo, hi) => Math.max(lo, Math.min(hi, v));
|
|
463
466
|
var TEXT = {
|
|
464
|
-
temp: { en: "temp", es: "temp" },
|
|
465
|
-
util: { en: "load", es: "carga" },
|
|
466
|
-
vram: { en: "vram", es: "vram" },
|
|
467
|
-
power: { en: "power", es: "potencia" },
|
|
468
|
-
fan: { en: "fan", es: "vent." },
|
|
469
|
-
free: { en: "free", es: "libre" },
|
|
470
|
-
other: { en: "other", es: "otros" },
|
|
471
|
-
noProcs: { en: "no processes", es: "sin procesos" },
|
|
472
|
-
noData: { en: "no GPU data (needs the gpu/devices source)", es: "sin datos de GPU (necesita la fuente gpu/devices)" },
|
|
473
|
-
unavailable: { en: "no GPU: {reason}", es: "sin GPU: {reason}" },
|
|
474
|
-
noMatch: { en: "no GPU matches the filter", es: "ninguna GPU coincide con el filtro" },
|
|
475
|
-
last: { en: "last {span}", es: "\xFAltimos {span}" },
|
|
476
|
-
collecting: { en: "collecting\u2026", es: "recogiendo\u2026" }
|
|
467
|
+
temp: { en: "temp", es: "temp", de: "Temp", "zh-Hant": "\u6EAB\u5EA6", "zh-Hans": "\u6E29\u5EA6" },
|
|
468
|
+
util: { en: "load", es: "carga", de: "Last", "zh-Hant": "\u8CA0\u8F09", "zh-Hans": "\u8D1F\u8F7D" },
|
|
469
|
+
vram: { en: "vram", es: "vram", de: "VRAM", "zh-Hant": "vram", "zh-Hans": "vram" },
|
|
470
|
+
power: { en: "power", es: "potencia", de: "Leistung", "zh-Hant": "\u529F\u7387", "zh-Hans": "\u529F\u7387" },
|
|
471
|
+
fan: { en: "fan", es: "vent.", de: "L\xFCfter", "zh-Hant": "\u98A8\u6247", "zh-Hans": "\u98CE\u6247" },
|
|
472
|
+
free: { en: "free", es: "libre", de: "frei", "zh-Hant": "\u53EF\u7528", "zh-Hans": "\u53EF\u7528" },
|
|
473
|
+
other: { en: "other", es: "otros", de: "andere", "zh-Hant": "\u5176\u4ED6", "zh-Hans": "\u5176\u4ED6" },
|
|
474
|
+
noProcs: { en: "no processes", es: "sin procesos", de: "keine Prozesse", "zh-Hant": "\u7121\u8655\u7406\u7A0B\u5E8F", "zh-Hans": "\u65E0\u8FDB\u7A0B" },
|
|
475
|
+
noData: { en: "no GPU data (needs the gpu/devices source)", es: "sin datos de GPU (necesita la fuente gpu/devices)", de: "keine GPU-Daten (braucht die Datenquelle gpu/devices)", "zh-Hant": "\u7121 GPU \u8CC7\u6599\uFF08\u9700\u8981 gpu/devices \u8CC7\u6599\u4F86\u6E90\uFF09", "zh-Hans": "\u65E0 GPU \u6570\u636E\uFF08\u9700\u8981 gpu/devices \u6570\u636E\u6E90\uFF09" },
|
|
476
|
+
unavailable: { en: "no GPU: {reason}", es: "sin GPU: {reason}", de: "keine GPU: {reason}", "zh-Hant": "\u7121 GPU\uFF1A{reason}", "zh-Hans": "\u65E0 GPU\uFF1A{reason}" },
|
|
477
|
+
noMatch: { en: "no GPU matches the filter", es: "ninguna GPU coincide con el filtro", de: "keine GPU passt zum Filter", "zh-Hant": "\u6C92\u6709\u7B26\u5408\u7BE9\u9078\u689D\u4EF6\u7684 GPU", "zh-Hans": "\u6CA1\u6709\u7B26\u5408\u7B5B\u9009\u6761\u4EF6\u7684 GPU" },
|
|
478
|
+
last: { en: "last {span}", es: "\xFAltimos {span}", de: "letzte {span}", "zh-Hant": "\u6700\u8FD1 {span}", "zh-Hans": "\u6700\u8FD1 {span}" },
|
|
479
|
+
collecting: { en: "collecting\u2026", es: "recogiendo\u2026", de: "sammle\u2026", "zh-Hant": "\u6536\u96C6\u4E2D\u2026", "zh-Hans": "\u91C7\u96C6\u4E2D\u2026" }
|
|
480
|
+
};
|
|
481
|
+
var THROTTLE = {
|
|
482
|
+
"power cap": { en: "power cap", es: "tope de potencia", de: "Leistungslimit", "zh-Hant": "\u529F\u8017\u4E0A\u9650", "zh-Hans": "\u529F\u8017\u4E0A\u9650" },
|
|
483
|
+
"hw slowdown": { en: "hw slowdown", es: "freno hw", de: "HW-Drosselung", "zh-Hant": "\u786C\u9AD4\u964D\u983B", "zh-Hans": "\u786C\u4EF6\u964D\u9891" },
|
|
484
|
+
thermal: { en: "thermal", es: "t\xE9rmico", de: "thermisch", "zh-Hant": "\u904E\u71B1\u964D\u983B", "zh-Hans": "\u8FC7\u70ED\u964D\u9891" },
|
|
485
|
+
"hw thermal": { en: "hw thermal", es: "t\xE9rmico hw", de: "HW thermisch", "zh-Hant": "\u786C\u9AD4\u904E\u71B1\u964D\u983B", "zh-Hans": "\u786C\u4EF6\u8FC7\u70ED\u964D\u9891" },
|
|
486
|
+
"power brake": { en: "power brake", es: "freno de potencia", de: "Leistungsbremse", "zh-Hant": "\u96FB\u6E90\u5236\u52D5\u964D\u983B", "zh-Hans": "\u7535\u6E90\u5236\u52A8\u964D\u9891" }
|
|
477
487
|
};
|
|
478
488
|
var fill = (text2, vars) => text2.replace(/\{(\w+)\}/g, (_, k) => String(vars[k] ?? ""));
|
|
479
489
|
function levelColor(l, c, normal = c.inkDim) {
|
|
@@ -483,7 +493,7 @@ function drawEmpty(g, ctx, s) {
|
|
|
483
493
|
const { box, kit, theme, t: t2 } = ctx;
|
|
484
494
|
if (s?.available && s.gpus.length) return false;
|
|
485
495
|
const size = Math.max(10, Math.round(clamp(box.h / 18, 10, 18)));
|
|
486
|
-
const msg = !s ? t2(TEXT.noData) : s.available ? t2(TEXT.noMatch) : fill(t2(TEXT.unavailable), { reason: s.reason ?? "?" });
|
|
496
|
+
const msg = !s ? t2(TEXT.noData) : s.available ? t2(TEXT.noMatch) : fill(t2(TEXT.unavailable), { reason: s.reasonText ? t2(s.reasonText) : s.reason ?? "?" });
|
|
487
497
|
const lines = kit.wrapLines(g, msg, box.w, 4, { size, family: theme.fonts.mono });
|
|
488
498
|
lines.forEach((l, i) => kit.drawTracked(g, l, box.x, box.y + size * 1.2 * (i + 1), { size, family: theme.fonts.mono, color: theme.colors.inkFaint }));
|
|
489
499
|
return true;
|
|
@@ -551,7 +561,7 @@ function drawCard(g, ctx, d, r, th) {
|
|
|
551
561
|
bar(g, c, r.x, y + 6 * s, r.w, barH, ratio, color);
|
|
552
562
|
y += 6 * s + barH;
|
|
553
563
|
}
|
|
554
|
-
const foot = [d.fan !== void 0 ? `${ctx.t(TEXT.fan)} ${Math.round(d.fan)}%` : "", d.smClock ? `${Math.round(d.smClock)}MHz` : "", ...d.throttle ?? []].filter(Boolean);
|
|
564
|
+
const foot = [d.fan !== void 0 ? `${ctx.t(TEXT.fan)} ${Math.round(d.fan)}%` : "", d.smClock ? `${Math.round(d.smClock)}MHz` : "", ...(d.throttle ?? []).map((x) => THROTTLE[x] ? ctx.t(THROTTLE[x]) : x)].filter(Boolean);
|
|
555
565
|
const fs = Math.max(9, Math.round(13 * s));
|
|
556
566
|
if (foot.length && y + fs * 1.8 <= r.y + r.h) {
|
|
557
567
|
const throttled = (d.throttle?.length ?? 0) > 0 && d.throttle.some((x) => /thermal|slowdown|brake/.test(x));
|
|
@@ -647,14 +657,19 @@ function drawHistory(g, ctx, s, th, windowMs) {
|
|
|
647
657
|
if (pts.length < 2) {
|
|
648
658
|
kit.drawClipped(g, ctx.t(TEXT.collecting), r.x + 6, cy + ch / 2, r.w - 12, { size: Math.max(9, Math.round(13 * sc)), family: f.mono, color: c.inkFaint });
|
|
649
659
|
} else {
|
|
660
|
+
g.save();
|
|
661
|
+
g.beginPath();
|
|
662
|
+
g.rect(r.x, cy, r.w, ch);
|
|
663
|
+
g.clip();
|
|
650
664
|
area(g, pts, px, (p) => p[2] === null ? null : cy + ch - clamp(p[2], 0, 100) / 100 * ch, cy + ch, c.inkFaint);
|
|
651
665
|
line(g, pts, px, (p) => p[1] === null ? null : ty(p[1]), (p) => levelColor(tempLevel(p[1] ?? void 0, th), c), Math.max(1.5, 2.5 * sc));
|
|
666
|
+
g.restore();
|
|
652
667
|
}
|
|
653
668
|
g.strokeStyle = c.surfaceEdge;
|
|
654
669
|
g.strokeRect(r.x + 0.5, cy + 0.5, r.w - 1, ch - 1);
|
|
655
670
|
if (footH) {
|
|
656
|
-
const fy = cy + ch + 14 * sc;
|
|
657
671
|
const lbl = { size: Math.max(9, Math.round(11 * sc)), family: f.sansBold, tracking: 2 * sc, smallCaps: true, color: c.inkFaint };
|
|
672
|
+
const fy = Math.min(cy + ch + 14 * sc, r.y + r.h - Math.ceil(lbl.size * 0.32));
|
|
658
673
|
kit.drawClipped(g, `${ctx.t(TEXT.temp)} \u2014 ${ctx.t(TEXT.util)} \u2592`, r.x, fy, r.w / 2, lbl);
|
|
659
674
|
kit.drawTracked(g, fill(ctx.t(TEXT.last), { span: ctx.fmt.duration(windowMs, { round: "nearest", compact: true }) }), r.x + r.w, fy, { ...lbl, align: "right" });
|
|
660
675
|
}
|
|
@@ -773,37 +788,40 @@ function demoSnapshot(now) {
|
|
|
773
788
|
}
|
|
774
789
|
var sourceOptions = t.object({
|
|
775
790
|
backend: t.enum(["auto", "nvidia", "amd", "intel", "prometheus"], {
|
|
776
|
-
label: { en: "Back end", es: "Origen" },
|
|
777
|
-
help: { en: "auto tries the metrics URL (if set), nvidia-smi, rocm-smi / amd-smi and sysfs, in that order.", es: "auto prueba la URL de m\xE9tricas (si hay), nvidia-smi, rocm-smi / amd-smi y sysfs, por ese orden." },
|
|
778
|
-
labels: { auto: { en: "Automatic", es: "Autom\xE1tico" }, nvidia: "NVIDIA (nvidia-smi)", amd: "AMD (rocm-smi, amd-smi, sysfs)", intel: { en: "Intel (sysfs, best effort)", es: "Intel (sysfs, lo que se pueda)" }, prometheus: "Prometheus (DCGM / nvidia_gpu_exporter)" }
|
|
791
|
+
label: { en: "Back end", es: "Origen", de: "Backend", "zh-Hant": "\u5F8C\u7AEF", "zh-Hans": "\u540E\u7AEF" },
|
|
792
|
+
help: { en: "auto tries the metrics URL (if set), nvidia-smi, rocm-smi / amd-smi and sysfs, in that order.", es: "auto prueba la URL de m\xE9tricas (si hay), nvidia-smi, rocm-smi / amd-smi y sysfs, por ese orden.", de: "Automatisch probiert die Metrik-URL (falls eingetragen), nvidia-smi, rocm-smi / amd-smi und sysfs, in dieser Reihenfolge.", "zh-Hant": "auto \u6703\u4F9D\u5E8F\u5617\u8A66\u6307\u6A19 URL\uFF08\u82E5\u6709\u8A2D\u5B9A\uFF09\u3001nvidia-smi\u3001rocm-smi / amd-smi \u53CA sysfs\u3002", "zh-Hans": "auto \u4F1A\u4F9D\u6B21\u5C1D\u8BD5\u6307\u6807 URL\uFF08\u5982\u5DF2\u8BBE\u7F6E\uFF09\u3001nvidia-smi\u3001rocm-smi / amd-smi \u548C sysfs\u3002" },
|
|
793
|
+
labels: { auto: { en: "Automatic", es: "Autom\xE1tico", de: "Automatisch", "zh-Hant": "\u81EA\u52D5", "zh-Hans": "\u81EA\u52A8" }, nvidia: "NVIDIA (nvidia-smi)", amd: "AMD (rocm-smi, amd-smi, sysfs)", intel: { en: "Intel (sysfs, best effort)", es: "Intel (sysfs, lo que se pueda)", de: "Intel (sysfs, ohne Gew\xE4hr)", "zh-Hant": "Intel\uFF08sysfs\uFF0C\u76E1\u529B\u800C\u70BA\uFF09", "zh-Hans": "Intel\uFF08sysfs\uFF0C\u5C3D\u529B\u800C\u4E3A\uFF09" }, prometheus: "Prometheus (DCGM / nvidia_gpu_exporter)" }
|
|
779
794
|
}),
|
|
780
795
|
ssh: t.string({
|
|
781
796
|
placeholder: "user@gpubox",
|
|
782
797
|
risk: "exec",
|
|
783
|
-
label: { en: "Read over ssh", es: "Leer por ssh" },
|
|
784
|
-
help: { en: "Runs nvidia-smi / rocm-smi on that host with ssh -o BatchMode=yes: needs key login. Empty = this machine.", es: "Ejecuta nvidia-smi / rocm-smi en ese host con ssh -o BatchMode=yes: necesita acceso por clave. Vac\xEDo = esta m\xE1quina." }
|
|
798
|
+
label: { en: "Read over ssh", es: "Leer por ssh", de: "\xDCber ssh lesen", "zh-Hant": "\u900F\u904E ssh \u8B80\u53D6", "zh-Hans": "\u901A\u8FC7 ssh \u8BFB\u53D6" },
|
|
799
|
+
help: { en: "Runs nvidia-smi / rocm-smi on that host with ssh -o BatchMode=yes: needs key login. Empty = this machine.", es: "Ejecuta nvidia-smi / rocm-smi en ese host con ssh -o BatchMode=yes: necesita acceso por clave. Vac\xEDo = esta m\xE1quina.", de: "F\xFChrt nvidia-smi / rocm-smi auf diesem Host mit ssh -o BatchMode=yes aus: braucht Anmeldung per Schl\xFCssel. Leer = dieser Rechner.", "zh-Hant": "\u4EE5 ssh -o BatchMode=yes \u5728\u8A72\u4E3B\u6A5F\u4E0A\u57F7\u884C nvidia-smi / rocm-smi\uFF1A\u9700\u8981\u91D1\u9470\u767B\u5165\u3002\u7559\u7A7A = \u672C\u6A5F\u3002", "zh-Hans": "\u7528 ssh -o BatchMode=yes \u5728\u8BE5\u4E3B\u673A\u4E0A\u8FD0\u884C nvidia-smi / rocm-smi\uFF1A\u9700\u8981\u5BC6\u94A5\u767B\u5F55\u3002\u7559\u7A7A = \u672C\u673A\u3002" }
|
|
785
800
|
}),
|
|
786
801
|
url: t.string({
|
|
787
802
|
format: "url",
|
|
788
803
|
secret: true,
|
|
789
804
|
risk: "network",
|
|
790
805
|
placeholder: "http://gpubox:9400/metrics",
|
|
791
|
-
label: { en: "Metrics URL", es: "URL de m\xE9tricas" },
|
|
792
|
-
help: { en: "DCGM exporter (port 9400) or nvidia_gpu_exporter (port 9835).", es: "DCGM exporter (puerto 9400) o nvidia_gpu_exporter (puerto 9835)." }
|
|
806
|
+
label: { en: "Metrics URL", es: "URL de m\xE9tricas", de: "Metrik-URL", "zh-Hant": "\u6307\u6A19 URL", "zh-Hans": "\u6307\u6807 URL" },
|
|
807
|
+
help: { en: "DCGM exporter (port 9400) or nvidia_gpu_exporter (port 9835).", es: "DCGM exporter (puerto 9400) o nvidia_gpu_exporter (puerto 9835).", de: "DCGM-Exporter (Port 9400) oder nvidia_gpu_exporter (Port 9835).", "zh-Hant": "DCGM exporter\uFF08\u9023\u63A5\u57E0 9400\uFF09\u6216 nvidia_gpu_exporter\uFF08\u9023\u63A5\u57E0 9835\uFF09\u3002", "zh-Hans": "DCGM exporter\uFF08\u7AEF\u53E3 9400\uFF09\u6216 nvidia_gpu_exporter\uFF08\u7AEF\u53E3 9835\uFF09\u3002" }
|
|
793
808
|
}),
|
|
794
|
-
token: t.string({ secret: true, advanced: true, label: { en: "Metrics bearer token", es: "Token bearer de las m\xE9tricas" }, help: { en: "Only if the metrics URL is behind auth.", es: "Solo si la URL de m\xE9tricas pide autenticaci\xF3n." } }),
|
|
795
|
-
label: t.string({ placeholder: "gpubox", label: { en: "Host label", es: "Nombre del host" }, help: { en: "Shown above the GPUs. Defaults to the ssh host.", es: "Se muestra encima de las GPU. Por defecto, el host de ssh." } }),
|
|
796
|
-
processes: t.boolean({ default: true, label: { en: "Per-process VRAM", es: "VRAM por proceso" }, help: { en: "One more nvidia-smi call per reading.", es: "Una llamada m\xE1s a nvidia-smi por lectura." } }),
|
|
797
|
-
historyMs: t.duration({ default: 30 * 6e4, min: 6e4, max: 4 * 36e5, label: { en: "History kept", es: "Historial guardado" }, help: { en: "How far back GPU history can look.", es: "Hasta d\xF3nde puede mirar atr\xE1s el historial de GPU." } })
|
|
809
|
+
token: t.string({ secret: true, advanced: true, label: { en: "Metrics bearer token", es: "Token bearer de las m\xE9tricas", de: "Bearer-Token f\xFCr Metriken", "zh-Hant": "\u6307\u6A19 Bearer \u6B0A\u6756", "zh-Hans": "\u6307\u6807 Bearer \u4EE4\u724C" }, help: { en: "Only if the metrics URL is behind auth.", es: "Solo si la URL de m\xE9tricas pide autenticaci\xF3n.", de: "Nur wenn die Metrik-URL eine Anmeldung verlangt.", "zh-Hant": "\u50C5\u5728\u6307\u6A19 URL \u9700\u8981\u9A57\u8B49\u6642\u586B\u5BEB\u3002", "zh-Hans": "\u4EC5\u5F53\u6307\u6807 URL \u9700\u8981\u8BA4\u8BC1\u65F6\u586B\u5199\u3002" } }),
|
|
810
|
+
label: t.string({ placeholder: "gpubox", label: { en: "Host label", es: "Nombre del host", de: "Host-Bezeichnung", "zh-Hant": "\u4E3B\u6A5F\u6A19\u7C64", "zh-Hans": "\u4E3B\u673A\u6807\u7B7E" }, help: { en: "Shown above the GPUs. Defaults to the ssh host.", es: "Se muestra encima de las GPU. Por defecto, el host de ssh.", de: "Wird \xFCber den GPUs angezeigt. Standard ist der ssh-Host.", "zh-Hant": "\u986F\u793A\u5728 GPU \u4E0A\u65B9\u3002\u9810\u8A2D\u70BA ssh \u4E3B\u6A5F\u3002", "zh-Hans": "\u663E\u793A\u5728 GPU \u4E0A\u65B9\u3002\u9ED8\u8BA4\u4E3A ssh \u4E3B\u673A\u3002" } }),
|
|
811
|
+
processes: t.boolean({ default: true, label: { en: "Per-process VRAM", es: "VRAM por proceso", de: "VRAM pro Prozess", "zh-Hant": "\u5404\u8655\u7406\u7A0B\u5E8F\u7684\u986F\u793A\u8A18\u61B6\u9AD4", "zh-Hans": "\u5404\u8FDB\u7A0B\u7684\u663E\u5B58" }, help: { en: "One more nvidia-smi call per reading.", es: "Una llamada m\xE1s a nvidia-smi por lectura.", de: "Ein zus\xE4tzlicher nvidia-smi-Aufruf pro Abfrage.", "zh-Hant": "\u6BCF\u6B21\u8B80\u53D6\u591A\u547C\u53EB\u4E00\u6B21 nvidia-smi\u3002", "zh-Hans": "\u6BCF\u6B21\u8BFB\u53D6\u591A\u8C03\u7528\u4E00\u6B21 nvidia-smi\u3002" } }),
|
|
812
|
+
historyMs: t.duration({ default: 30 * 6e4, min: 6e4, max: 4 * 36e5, label: { en: "History kept", es: "Historial guardado", de: "Aufbewahrter Verlauf", "zh-Hant": "\u6B77\u53F2\u4FDD\u7559\u6642\u9577", "zh-Hans": "\u5386\u53F2\u4FDD\u7559\u65F6\u957F" }, help: { en: "How far back GPU history can look.", es: "Hasta d\xF3nde puede mirar atr\xE1s el historial de GPU.", de: "Wie weit der GPU-Verlauf zur\xFCckreichen kann.", "zh-Hant": "GPU \u6B77\u53F2\u6700\u591A\u53EF\u56DE\u6EAF\u591A\u4E45\u3002", "zh-Hans": "GPU \u5386\u53F2\u6700\u591A\u53EF\u56DE\u6EAF\u591A\u4E45\u3002" } })
|
|
798
813
|
});
|
|
799
814
|
var history = {};
|
|
800
815
|
var deps = { ...DEFAULT_DEPS };
|
|
801
816
|
var devices = defineSource({
|
|
802
817
|
id: "devices",
|
|
803
|
-
name: { en: "GPUs", es: "GPU" },
|
|
818
|
+
name: { en: "GPUs", es: "GPU", de: "GPUs", "zh-Hant": "GPU", "zh-Hans": "GPU" },
|
|
804
819
|
description: {
|
|
805
820
|
en: "Temperature, load, VRAM (and who holds it), power, fan and clocks per GPU, from this machine, another over ssh, or a Prometheus exporter.",
|
|
806
|
-
es: "Temperatura, carga, VRAM (y qui\xE9n la ocupa), potencia, ventilador y relojes por GPU, de esta m\xE1quina, de otra por ssh o de un exporter de Prometheus."
|
|
821
|
+
es: "Temperatura, carga, VRAM (y qui\xE9n la ocupa), potencia, ventilador y relojes por GPU, de esta m\xE1quina, de otra por ssh o de un exporter de Prometheus.",
|
|
822
|
+
de: "Temperatur, Last, VRAM (und wer ihn belegt), Leistung, L\xFCfter und Takt pro GPU, von diesem Rechner, einem anderen \xFCber ssh oder einem Prometheus-Exporter.",
|
|
823
|
+
"zh-Hant": "\u6BCF\u5F35 GPU \u7684\u6EAB\u5EA6\u3001\u8CA0\u8F09\u3001\u986F\u793A\u8A18\u61B6\u9AD4\uFF08\u53CA\u5176\u4F54\u7528\u8005\uFF09\u3001\u529F\u7387\u3001\u98A8\u6247\u8207\u6642\u8108\uFF0C\u4F86\u6E90\u53EF\u70BA\u672C\u6A5F\u3001\u900F\u904E ssh \u9023\u7DDA\u7684\u53E6\u4E00\u53F0\u6A5F\u5668\u6216 Prometheus exporter\u3002",
|
|
824
|
+
"zh-Hans": "\u6BCF\u5757 GPU \u7684\u6E29\u5EA6\u3001\u8D1F\u8F7D\u3001\u663E\u5B58\uFF08\u53CA\u5176\u5360\u7528\u8005\uFF09\u3001\u529F\u7387\u3001\u98CE\u6247\u548C\u9891\u7387\uFF0C\u53EF\u6765\u81EA\u672C\u673A\u3001\u901A\u8FC7 ssh \u8FDE\u63A5\u7684\u53E6\u4E00\u53F0\u673A\u5668\u6216 Prometheus exporter\u3002"
|
|
807
825
|
},
|
|
808
826
|
options: sourceOptions,
|
|
809
827
|
intervalMs: 5e3,
|
|
@@ -820,13 +838,13 @@ async function readDevices(o, signal, now) {
|
|
|
820
838
|
return snap;
|
|
821
839
|
}
|
|
822
840
|
var options = {
|
|
823
|
-
tempWarn: t.integer({ default: 80, min: 30, max: 120, unit: "\xB0C", label: { en: "Amber temperature", es: "Temperatura \xE1mbar" } }),
|
|
824
|
-
tempAlert: t.integer({ default: 90, min: 30, max: 120, unit: "\xB0C", label: { en: "Red temperature", es: "Temperatura roja" }, help: { en: "Of the core (the hotspot or memory sensor when there is no core one). The widget keeps the tile while a GPU is past it.", es: "Del n\xFAcleo (o del sensor de hotspot o de memoria si no hay del n\xFAcleo). El widget se queda la tesela mientras una GPU la pase." } }),
|
|
825
|
-
vramWarn: t.integer({ default: 90, min: 0, max: 100, unit: "%", slider: true, label: { en: "Amber VRAM from", es: "VRAM \xE1mbar desde" } }),
|
|
826
|
-
vramAlert: t.integer({ default: 97, min: 0, max: 100, unit: "%", slider: true, label: { en: "Red VRAM from", es: "VRAM roja desde" } }),
|
|
841
|
+
tempWarn: t.integer({ default: 80, min: 30, max: 120, unit: "\xB0C", label: { en: "Amber temperature", es: "Temperatura \xE1mbar", de: "Temperatur gelb ab", "zh-Hant": "\u6EAB\u5EA6\u7425\u73C0\u8272\u9580\u6ABB", "zh-Hans": "\u6E29\u5EA6\u7425\u73C0\u8272\u9608\u503C" } }),
|
|
842
|
+
tempAlert: t.integer({ default: 90, min: 30, max: 120, unit: "\xB0C", label: { en: "Red temperature", es: "Temperatura roja", de: "Temperatur rot ab", "zh-Hant": "\u6EAB\u5EA6\u7D05\u8272\u9580\u6ABB", "zh-Hans": "\u6E29\u5EA6\u7EA2\u8272\u9608\u503C" }, help: { en: "Of the core (the hotspot or memory sensor when there is no core one). The widget keeps the tile while a GPU is past it.", es: "Del n\xFAcleo (o del sensor de hotspot o de memoria si no hay del n\xFAcleo). El widget se queda la tesela mientras una GPU la pase.", de: "Des Kerns (Hotspot- oder Speichersensor, wenn es keinen Kernsensor gibt). Das Widget beh\xE4lt die Kachel, solange eine GPU dar\xFCber liegt.", "zh-Hant": "\u6307\u6838\u5FC3\u6EAB\u5EA6\uFF08\u6C92\u6709\u6838\u5FC3\u611F\u6E2C\u5668\u6642\u6539\u7528\u71B1\u9EDE\u6216\u8A18\u61B6\u9AD4\u611F\u6E2C\u5668\uFF09\u3002\u53EA\u8981\u6709 GPU \u8D85\u904E\u6B64\u503C\uFF0C\u5C0F\u5DE5\u5177\u5C31\u6703\u6301\u7E8C\u4F54\u7528\u65B9\u683C\u3002", "zh-Hans": "\u6307\u6838\u5FC3\u6E29\u5EA6\uFF08\u6CA1\u6709\u6838\u5FC3\u4F20\u611F\u5668\u65F6\u6539\u7528\u70ED\u70B9\u6216\u663E\u5B58\u4F20\u611F\u5668\uFF09\u3002\u53EA\u8981\u6709 GPU \u8D85\u8FC7\u6B64\u503C\uFF0C\u5C0F\u7EC4\u4EF6\u5C31\u4F1A\u6301\u7EED\u5360\u7528\u683C\u5B50\u3002" } }),
|
|
843
|
+
vramWarn: t.integer({ default: 90, min: 0, max: 100, unit: "%", slider: true, label: { en: "Amber VRAM from", es: "VRAM \xE1mbar desde", de: "VRAM gelb ab", "zh-Hant": "\u986F\u793A\u8A18\u61B6\u9AD4\u7425\u73C0\u8272\u9580\u6ABB", "zh-Hans": "\u663E\u5B58\u7425\u73C0\u8272\u9608\u503C" } }),
|
|
844
|
+
vramAlert: t.integer({ default: 97, min: 0, max: 100, unit: "%", slider: true, label: { en: "Red VRAM from", es: "VRAM roja desde", de: "VRAM rot ab", "zh-Hant": "\u986F\u793A\u8A18\u61B6\u9AD4\u7D05\u8272\u9580\u6ABB", "zh-Hans": "\u663E\u5B58\u7EA2\u8272\u9608\u503C" } }),
|
|
827
845
|
gpus: t.filter({
|
|
828
|
-
label: { en: "GPUs", es: "GPU" },
|
|
829
|
-
help: { en: "Empty: all. Indexes or model names, comma-separated: * matches anything, a leading ! leaves out (0, 1, *4090*, !*A6000*).", es: "Vac\xEDo: todas. \xCDndices o modelos separados por comas: * vale por cualquier cosa y un ! delante excluye (0, 1, *4090*, !*A6000*)." }
|
|
846
|
+
label: { en: "GPUs", es: "GPU", de: "GPUs", "zh-Hant": "GPU", "zh-Hans": "GPU" },
|
|
847
|
+
help: { en: "Empty: all. Indexes or model names, comma-separated: * matches anything, a leading ! leaves out (0, 1, *4090*, !*A6000*).", es: "Vac\xEDo: todas. \xCDndices o modelos separados por comas: * vale por cualquier cosa y un ! delante excluye (0, 1, *4090*, !*A6000*).", de: "Leer: alle. Indizes oder Modellnamen, durch Kommas getrennt: * steht f\xFCr beliebigen Text, ein vorangestelltes ! schlie\xDFt aus (0, 1, *4090*, !*A6000*).", "zh-Hant": "\u7559\u7A7A\uFF1A\u5168\u90E8\u3002\u4EE5\u9017\u865F\u5206\u9694\u7684\u7D22\u5F15\u6216\u578B\u865F\uFF1A* \u7B26\u5408\u4EFB\u4F55\u5167\u5BB9\uFF0C\u958B\u982D\u52A0 ! \u8868\u793A\u6392\u9664\uFF080, 1, *4090*, !*A6000*\uFF09\u3002", "zh-Hans": "\u7559\u7A7A\uFF1A\u5168\u90E8\u3002\u4EE5\u9017\u53F7\u5206\u9694\u7684\u7D22\u5F15\u6216\u578B\u53F7\uFF1A* \u5339\u914D\u4EFB\u610F\u5185\u5BB9\uFF0C\u5F00\u5934\u52A0 ! \u8868\u793A\u6392\u9664\uFF080, 1, *4090*, !*A6000*\uFF09\u3002" }
|
|
830
848
|
})
|
|
831
849
|
};
|
|
832
850
|
var gpusOf = ({ options: options2, sources }) => filterGpus(snapshotOf(sources), options2.gpus);
|
|
@@ -835,10 +853,13 @@ var idle = (st) => !anyBusy(gpusOf(st), st.options);
|
|
|
835
853
|
var demo = ({ now }) => ({ sources: { [DEVICES_SOURCE]: demoSnapshot(now) } });
|
|
836
854
|
var cards = defineWidget({
|
|
837
855
|
id: "cards",
|
|
838
|
-
name: { en: "GPU cards", es: "Tarjetas de GPU" },
|
|
856
|
+
name: { en: "GPU cards", es: "Tarjetas de GPU", de: "GPU-Karten", "zh-Hant": "GPU \u5361\u7247", "zh-Hans": "GPU \u5361\u7247" },
|
|
839
857
|
description: {
|
|
840
858
|
en: "One column per GPU: temperature, load, VRAM and power bars, fan and throttling. Dim until a threshold is crossed.",
|
|
841
|
-
es: "Una columna por GPU: temperatura, carga, barras de VRAM y potencia, ventilador y limitaci\xF3n. Apagada hasta cruzar un umbral."
|
|
859
|
+
es: "Una columna por GPU: temperatura, carga, barras de VRAM y potencia, ventilador y limitaci\xF3n. Apagada hasta cruzar un umbral.",
|
|
860
|
+
de: "Eine Spalte pro GPU: Balken f\xFCr Temperatur, Last, VRAM und Leistung, dazu L\xFCfter und Drosselung. Gedimmt, bis ein Schwellenwert \xFCberschritten ist.",
|
|
861
|
+
"zh-Hant": "\u6BCF\u5F35 GPU \u4E00\u6B04\uFF1A\u6EAB\u5EA6\u3001\u8CA0\u8F09\u3001\u986F\u793A\u8A18\u61B6\u9AD4\u8207\u529F\u7387\u9577\u689D\u3001\u98A8\u6247\u548C\u964D\u983B\u72C0\u614B\u3002\u672A\u8D85\u904E\u9580\u6ABB\u524D\u4FDD\u6301\u6697\u8272\u3002",
|
|
862
|
+
"zh-Hans": "\u6BCF\u5757 GPU \u4E00\u5217\uFF1A\u6E29\u5EA6\u3001\u8D1F\u8F7D\u3001\u663E\u5B58\u548C\u529F\u7387\u6761\u3001\u98CE\u6247\u53CA\u964D\u9891\u72B6\u6001\u3002\u672A\u8D85\u8FC7\u9608\u503C\u524D\u4FDD\u6301\u6697\u8272\u3002"
|
|
842
863
|
},
|
|
843
864
|
icon: "cpu",
|
|
844
865
|
category: "system",
|
|
@@ -855,16 +876,19 @@ var cards = defineWidget({
|
|
|
855
876
|
});
|
|
856
877
|
var vram = defineWidget({
|
|
857
878
|
id: "vram",
|
|
858
|
-
name: { en: "GPU memory", es: "Memoria de GPU" },
|
|
879
|
+
name: { en: "GPU memory", es: "Memoria de GPU", de: "GPU-Speicher", "zh-Hant": "GPU \u986F\u793A\u8A18\u61B6\u9AD4", "zh-Hans": "GPU \u663E\u5B58" },
|
|
859
880
|
description: {
|
|
860
881
|
en: "VRAM per GPU as a bar stacked by process (ollama, vllm, python\u2026), with what is left free.",
|
|
861
|
-
es: "VRAM por GPU como una barra apilada por proceso (ollama, vllm, python\u2026), con lo que queda libre."
|
|
882
|
+
es: "VRAM por GPU como una barra apilada por proceso (ollama, vllm, python\u2026), con lo que queda libre.",
|
|
883
|
+
de: "VRAM pro GPU als nach Prozessen gestapelter Balken (ollama, vllm, python\u2026), mit dem, was frei bleibt.",
|
|
884
|
+
"zh-Hant": "\u6BCF\u5F35 GPU \u7684\u986F\u793A\u8A18\u61B6\u9AD4\u4EE5\u4F9D\u8655\u7406\u7A0B\u5E8F\u5806\u758A\u7684\u9577\u689D\u5448\u73FE\uFF08ollama\u3001vllm\u3001python\u2026\uFF09\uFF0C\u4E26\u6A19\u51FA\u5269\u9918\u7A7A\u9593\u3002",
|
|
885
|
+
"zh-Hans": "\u6BCF\u5757 GPU \u7684\u663E\u5B58\u4EE5\u6309\u8FDB\u7A0B\u5806\u53E0\u7684\u6761\u5F62\u663E\u793A\uFF08ollama\u3001vllm\u3001python\u2026\uFF09\uFF0C\u5E76\u6807\u51FA\u5269\u4F59\u7A7A\u95F4\u3002"
|
|
862
886
|
},
|
|
863
887
|
icon: "cpu",
|
|
864
888
|
category: "system",
|
|
865
889
|
tags: ["gpu", "vram", "models", "ai"],
|
|
866
890
|
size: { min: { w: 200, h: 60 }, preferred: { w: 960, h: 230 } },
|
|
867
|
-
options: t.object({ ...options, maxProcesses: t.integer({ default: 4, min: 1, max: 12, label: { en: "Processes per bar", es: "Procesos por barra" }, help: { en: 'The rest is grouped as "other".', es: "El resto se agrupa como \xABotros\xBB." } }) }),
|
|
891
|
+
options: t.object({ ...options, maxProcesses: t.integer({ default: 4, min: 1, max: 12, label: { en: "Processes per bar", es: "Procesos por barra", de: "Prozesse pro Balken", "zh-Hant": "\u6BCF\u689D\u9577\u689D\u7684\u8655\u7406\u7A0B\u5E8F\u6578", "zh-Hans": "\u6BCF\u6761\u7684\u8FDB\u7A0B\u6570" }, help: { en: 'The rest is grouped as "other".', es: "El resto se agrupa como \xABotros\xBB.", de: "Der Rest wird als \u201Eandere\u201C zusammengefasst.", "zh-Hant": "\u5176\u9918\u6B78\u70BA\u300C\u5176\u4ED6\u300D\u3002", "zh-Hans": "\u5176\u4F59\u5F52\u4E3A\u201C\u5176\u4ED6\u201D\u3002" } }) }),
|
|
868
892
|
sources: [DEVICES_SOURCE],
|
|
869
893
|
render(g, ctx) {
|
|
870
894
|
drawVram(g, ctx, gpusOf(ctx), ctx.options, ctx.options.maxProcesses);
|
|
@@ -875,16 +899,19 @@ var vram = defineWidget({
|
|
|
875
899
|
});
|
|
876
900
|
var historyWidget = defineWidget({
|
|
877
901
|
id: "history",
|
|
878
|
-
name: { en: "GPU history", es: "Historial de GPU" },
|
|
902
|
+
name: { en: "GPU history", es: "Historial de GPU", de: "GPU-Verlauf", "zh-Hant": "GPU \u6B77\u53F2", "zh-Hans": "GPU \u5386\u53F2" },
|
|
879
903
|
description: {
|
|
880
904
|
en: "Temperature line over load area for the last minutes, per GPU, with the red temperature dashed.",
|
|
881
|
-
es: "L\xEDnea de temperatura sobre \xE1rea de carga de los \xFAltimos minutos, por GPU, con la temperatura roja discontinua."
|
|
905
|
+
es: "L\xEDnea de temperatura sobre \xE1rea de carga de los \xFAltimos minutos, por GPU, con la temperatura roja discontinua.",
|
|
906
|
+
de: "Temperaturlinie \xFCber der Lastfl\xE4che der letzten Minuten, pro GPU, mit der roten Temperaturschwelle gestrichelt.",
|
|
907
|
+
"zh-Hant": "\u6BCF\u5F35 GPU \u6700\u8FD1\u5E7E\u5206\u9418\u7684\u6EAB\u5EA6\u6298\u7DDA\u758A\u5728\u8CA0\u8F09\u9762\u7A4D\u5716\u4E0A\uFF0C\u7D05\u8272\u6EAB\u5EA6\u9580\u6ABB\u4EE5\u865B\u7DDA\u6A19\u793A\u3002",
|
|
908
|
+
"zh-Hans": "\u6BCF\u5757 GPU \u6700\u8FD1\u51E0\u5206\u949F\u7684\u6E29\u5EA6\u6298\u7EBF\u53E0\u52A0\u5728\u8D1F\u8F7D\u9762\u79EF\u56FE\u4E0A\uFF0C\u7EA2\u8272\u6E29\u5EA6\u9608\u503C\u4EE5\u865A\u7EBF\u6807\u793A\u3002"
|
|
882
909
|
},
|
|
883
910
|
icon: "chart",
|
|
884
911
|
category: "system",
|
|
885
912
|
tags: ["gpu", "temperature", "history", "chart"],
|
|
886
913
|
size: { min: { w: 200, h: 100 }, preferred: { w: 960, h: 230 } },
|
|
887
|
-
options: t.object({ ...options, historyMs: t.duration({ default: 30 * 6e4, min: 6e4, max: 4 * 36e5, label: { en: "Time shown", es: "Tiempo mostrado" }, help: { en: "Up to the history kept by the source.", es: "Hasta el historial que guarda la fuente." } }) }),
|
|
914
|
+
options: t.object({ ...options, historyMs: t.duration({ default: 30 * 6e4, min: 6e4, max: 4 * 36e5, label: { en: "Time shown", es: "Tiempo mostrado", de: "Angezeigter Zeitraum", "zh-Hant": "\u986F\u793A\u6642\u9577", "zh-Hans": "\u663E\u793A\u65F6\u957F" }, help: { en: "Up to the history kept by the source.", es: "Hasta el historial que guarda la fuente.", de: "Bis zum Verlauf, den die Datenquelle aufbewahrt.", "zh-Hant": "\u6700\u591A\u70BA\u8CC7\u6599\u4F86\u6E90\u4FDD\u7559\u7684\u6B77\u53F2\u9577\u5EA6\u3002", "zh-Hans": "\u6700\u591A\u4E3A\u6570\u636E\u6E90\u4FDD\u7559\u7684\u5386\u53F2\u957F\u5EA6\u3002" } }) }),
|
|
888
915
|
sources: [DEVICES_SOURCE],
|
|
889
916
|
render(g, ctx) {
|
|
890
917
|
drawHistory(g, ctx, gpusOf(ctx), ctx.options, ctx.options.historyMs);
|
|
@@ -895,11 +922,17 @@ var historyWidget = defineWidget({
|
|
|
895
922
|
});
|
|
896
923
|
var index_default = definePlugin({
|
|
897
924
|
id: "gpu",
|
|
898
|
-
name: { en: "GPU", es: "GPU" },
|
|
899
|
-
version: "0.2.
|
|
925
|
+
name: { en: "GPU", es: "GPU", de: "GPU", "zh-Hant": "GPU", "zh-Hans": "GPU" },
|
|
926
|
+
version: "0.2.2",
|
|
927
|
+
languages: ["en", "es", "de", "zh-Hant", "zh-Hans"],
|
|
928
|
+
sdk: "^0.2.0",
|
|
929
|
+
permissions: { exec: ["nvidia-smi", "rocm-smi", "amd-smi", "ssh"], files: ["/sys/class/drm"], network: ["user"] },
|
|
900
930
|
description: {
|
|
901
931
|
en: "The GPUs of your AI box: temperature, load, VRAM by process and history. Local, over ssh or from a Prometheus exporter.",
|
|
902
|
-
es: "Las GPU de tu m\xE1quina de IA: temperatura, carga, VRAM por proceso e historial. En local, por ssh o desde un exporter de Prometheus."
|
|
932
|
+
es: "Las GPU de tu m\xE1quina de IA: temperatura, carga, VRAM por proceso e historial. En local, por ssh o desde un exporter de Prometheus.",
|
|
933
|
+
de: "Die GPUs deines KI-Rechners: Temperatur, Last, VRAM nach Prozess und Verlauf. Lokal, \xFCber ssh oder von einem Prometheus-Exporter.",
|
|
934
|
+
"zh-Hant": "\u4F60 AI \u4E3B\u6A5F\u4E0A\u7684 GPU\uFF1A\u6EAB\u5EA6\u3001\u8CA0\u8F09\u3001\u5404\u8655\u7406\u7A0B\u5E8F\u7684\u986F\u793A\u8A18\u61B6\u9AD4\u8207\u6B77\u53F2\u3002\u53EF\u5728\u672C\u6A5F\u8B80\u53D6\u3001\u900F\u904E ssh \u6216\u5F9E Prometheus exporter \u53D6\u5F97\u3002",
|
|
935
|
+
"zh-Hans": "\u4F60 AI \u4E3B\u673A\u4E0A\u7684 GPU\uFF1A\u6E29\u5EA6\u3001\u8D1F\u8F7D\u3001\u5404\u8FDB\u7A0B\u7684\u663E\u5B58\u548C\u5386\u53F2\u3002\u53EF\u5728\u672C\u673A\u8BFB\u53D6\u3001\u901A\u8FC7 ssh \u6216\u4ECE Prometheus exporter \u83B7\u53D6\u3002"
|
|
903
936
|
},
|
|
904
937
|
author: "Kiosko",
|
|
905
938
|
license: "MIT",
|
package/docs/cards.png
ADDED
|
Binary file
|
package/docs/history.png
ADDED
|
Binary file
|
package/docs/vram.png
ADDED
|
Binary file
|
|
@@ -0,0 +1,872 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest": 1,
|
|
3
|
+
"id": "gpu",
|
|
4
|
+
"package": "kiosko-plugin-gpu",
|
|
5
|
+
"name": {
|
|
6
|
+
"en": "GPU",
|
|
7
|
+
"es": "GPU",
|
|
8
|
+
"de": "GPU",
|
|
9
|
+
"zh-Hant": "GPU",
|
|
10
|
+
"zh-Hans": "GPU"
|
|
11
|
+
},
|
|
12
|
+
"version": "0.2.2",
|
|
13
|
+
"description": {
|
|
14
|
+
"en": "The GPUs of your AI box: temperature, load, VRAM by process and history. Local, over ssh or from a Prometheus exporter.",
|
|
15
|
+
"es": "Las GPU de tu máquina de IA: temperatura, carga, VRAM por proceso e historial. En local, por ssh o desde un exporter de Prometheus.",
|
|
16
|
+
"de": "Die GPUs deines KI-Rechners: Temperatur, Last, VRAM nach Prozess und Verlauf. Lokal, über ssh oder von einem Prometheus-Exporter.",
|
|
17
|
+
"zh-Hant": "你 AI 主機上的 GPU:溫度、負載、各處理程序的顯示記憶體與歷史。可在本機讀取、透過 ssh 或從 Prometheus exporter 取得。",
|
|
18
|
+
"zh-Hans": "你 AI 主机上的 GPU:温度、负载、各进程的显存和历史。可在本机读取、通过 ssh 或从 Prometheus exporter 获取。"
|
|
19
|
+
},
|
|
20
|
+
"author": "Kiosko",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"homepage": "https://github.com/kiosko-lcd/kiosko-plugin-gpu#readme",
|
|
23
|
+
"repository": "https://github.com/kiosko-lcd/kiosko-plugin-gpu.git",
|
|
24
|
+
"icon": "cpu",
|
|
25
|
+
"sdk": "^0.2.0",
|
|
26
|
+
"platforms": [
|
|
27
|
+
"linux",
|
|
28
|
+
"darwin",
|
|
29
|
+
"win32"
|
|
30
|
+
],
|
|
31
|
+
"languages": [
|
|
32
|
+
"en",
|
|
33
|
+
"es",
|
|
34
|
+
"de",
|
|
35
|
+
"zh-Hant",
|
|
36
|
+
"zh-Hans"
|
|
37
|
+
],
|
|
38
|
+
"categories": [
|
|
39
|
+
"system"
|
|
40
|
+
],
|
|
41
|
+
"tags": [
|
|
42
|
+
"gpu",
|
|
43
|
+
"nvidia",
|
|
44
|
+
"amd",
|
|
45
|
+
"vram",
|
|
46
|
+
"temperature",
|
|
47
|
+
"ai",
|
|
48
|
+
"models",
|
|
49
|
+
"history",
|
|
50
|
+
"chart"
|
|
51
|
+
],
|
|
52
|
+
"permissions": {
|
|
53
|
+
"exec": [
|
|
54
|
+
"nvidia-smi",
|
|
55
|
+
"rocm-smi",
|
|
56
|
+
"amd-smi",
|
|
57
|
+
"ssh"
|
|
58
|
+
],
|
|
59
|
+
"files": [
|
|
60
|
+
"/sys/class/drm"
|
|
61
|
+
],
|
|
62
|
+
"network": [
|
|
63
|
+
"user"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"riskyOptions": [
|
|
67
|
+
{
|
|
68
|
+
"path": "gpu/devices: ssh",
|
|
69
|
+
"risk": [
|
|
70
|
+
"exec"
|
|
71
|
+
],
|
|
72
|
+
"secret": false
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"path": "gpu/devices: url",
|
|
76
|
+
"risk": [
|
|
77
|
+
"network"
|
|
78
|
+
],
|
|
79
|
+
"secret": true
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"path": "gpu/devices: token",
|
|
83
|
+
"risk": [],
|
|
84
|
+
"secret": true
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"requires": [],
|
|
88
|
+
"optional": [],
|
|
89
|
+
"widgets": [
|
|
90
|
+
{
|
|
91
|
+
"type": "gpu/cards",
|
|
92
|
+
"name": {
|
|
93
|
+
"en": "GPU cards",
|
|
94
|
+
"es": "Tarjetas de GPU",
|
|
95
|
+
"de": "GPU-Karten",
|
|
96
|
+
"zh-Hant": "GPU 卡片",
|
|
97
|
+
"zh-Hans": "GPU 卡片"
|
|
98
|
+
},
|
|
99
|
+
"description": {
|
|
100
|
+
"en": "One column per GPU: temperature, load, VRAM and power bars, fan and throttling. Dim until a threshold is crossed.",
|
|
101
|
+
"es": "Una columna por GPU: temperatura, carga, barras de VRAM y potencia, ventilador y limitación. Apagada hasta cruzar un umbral.",
|
|
102
|
+
"de": "Eine Spalte pro GPU: Balken für Temperatur, Last, VRAM und Leistung, dazu Lüfter und Drosselung. Gedimmt, bis ein Schwellenwert überschritten ist.",
|
|
103
|
+
"zh-Hant": "每張 GPU 一欄:溫度、負載、顯示記憶體與功率長條、風扇和降頻狀態。未超過門檻前保持暗色。",
|
|
104
|
+
"zh-Hans": "每块 GPU 一列:温度、负载、显存和功率条、风扇及降频状态。未超过阈值前保持暗色。"
|
|
105
|
+
},
|
|
106
|
+
"icon": "cpu",
|
|
107
|
+
"category": "system",
|
|
108
|
+
"tags": [
|
|
109
|
+
"gpu",
|
|
110
|
+
"nvidia",
|
|
111
|
+
"amd",
|
|
112
|
+
"vram",
|
|
113
|
+
"temperature",
|
|
114
|
+
"ai"
|
|
115
|
+
],
|
|
116
|
+
"size": {
|
|
117
|
+
"min": {
|
|
118
|
+
"w": 150,
|
|
119
|
+
"h": 120
|
|
120
|
+
},
|
|
121
|
+
"preferred": {
|
|
122
|
+
"w": 640,
|
|
123
|
+
"h": 462
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"chrome": "card",
|
|
127
|
+
"sources": [
|
|
128
|
+
"gpu/devices"
|
|
129
|
+
],
|
|
130
|
+
"options": {
|
|
131
|
+
"default": {
|
|
132
|
+
"tempWarn": 80,
|
|
133
|
+
"tempAlert": 90,
|
|
134
|
+
"vramWarn": 90,
|
|
135
|
+
"vramAlert": 97,
|
|
136
|
+
"gpus": []
|
|
137
|
+
},
|
|
138
|
+
"x-ui": {},
|
|
139
|
+
"type": "object",
|
|
140
|
+
"properties": {
|
|
141
|
+
"tempWarn": {
|
|
142
|
+
"title": "Amber temperature",
|
|
143
|
+
"default": 80,
|
|
144
|
+
"x-ui": {
|
|
145
|
+
"label": {
|
|
146
|
+
"en": "Amber temperature",
|
|
147
|
+
"es": "Temperatura ámbar",
|
|
148
|
+
"de": "Temperatur gelb ab",
|
|
149
|
+
"zh-Hant": "溫度琥珀色門檻",
|
|
150
|
+
"zh-Hans": "温度琥珀色阈值"
|
|
151
|
+
},
|
|
152
|
+
"unit": "°C"
|
|
153
|
+
},
|
|
154
|
+
"type": "integer",
|
|
155
|
+
"minimum": 30,
|
|
156
|
+
"maximum": 120
|
|
157
|
+
},
|
|
158
|
+
"tempAlert": {
|
|
159
|
+
"title": "Red temperature",
|
|
160
|
+
"description": "Of the core (the hotspot or memory sensor when there is no core one). The widget keeps the tile while a GPU is past it.",
|
|
161
|
+
"default": 90,
|
|
162
|
+
"x-ui": {
|
|
163
|
+
"label": {
|
|
164
|
+
"en": "Red temperature",
|
|
165
|
+
"es": "Temperatura roja",
|
|
166
|
+
"de": "Temperatur rot ab",
|
|
167
|
+
"zh-Hant": "溫度紅色門檻",
|
|
168
|
+
"zh-Hans": "温度红色阈值"
|
|
169
|
+
},
|
|
170
|
+
"help": {
|
|
171
|
+
"en": "Of the core (the hotspot or memory sensor when there is no core one). The widget keeps the tile while a GPU is past it.",
|
|
172
|
+
"es": "Del núcleo (o del sensor de hotspot o de memoria si no hay del núcleo). El widget se queda la tesela mientras una GPU la pase.",
|
|
173
|
+
"de": "Des Kerns (Hotspot- oder Speichersensor, wenn es keinen Kernsensor gibt). Das Widget behält die Kachel, solange eine GPU darüber liegt.",
|
|
174
|
+
"zh-Hant": "指核心溫度(沒有核心感測器時改用熱點或記憶體感測器)。只要有 GPU 超過此值,小工具就會持續佔用方格。",
|
|
175
|
+
"zh-Hans": "指核心温度(没有核心传感器时改用热点或显存传感器)。只要有 GPU 超过此值,小组件就会持续占用格子。"
|
|
176
|
+
},
|
|
177
|
+
"unit": "°C"
|
|
178
|
+
},
|
|
179
|
+
"type": "integer",
|
|
180
|
+
"minimum": 30,
|
|
181
|
+
"maximum": 120
|
|
182
|
+
},
|
|
183
|
+
"vramWarn": {
|
|
184
|
+
"title": "Amber VRAM from",
|
|
185
|
+
"default": 90,
|
|
186
|
+
"x-ui": {
|
|
187
|
+
"label": {
|
|
188
|
+
"en": "Amber VRAM from",
|
|
189
|
+
"es": "VRAM ámbar desde",
|
|
190
|
+
"de": "VRAM gelb ab",
|
|
191
|
+
"zh-Hant": "顯示記憶體琥珀色門檻",
|
|
192
|
+
"zh-Hans": "显存琥珀色阈值"
|
|
193
|
+
},
|
|
194
|
+
"unit": "%",
|
|
195
|
+
"slider": true
|
|
196
|
+
},
|
|
197
|
+
"type": "integer",
|
|
198
|
+
"minimum": 0,
|
|
199
|
+
"maximum": 100
|
|
200
|
+
},
|
|
201
|
+
"vramAlert": {
|
|
202
|
+
"title": "Red VRAM from",
|
|
203
|
+
"default": 97,
|
|
204
|
+
"x-ui": {
|
|
205
|
+
"label": {
|
|
206
|
+
"en": "Red VRAM from",
|
|
207
|
+
"es": "VRAM roja desde",
|
|
208
|
+
"de": "VRAM rot ab",
|
|
209
|
+
"zh-Hant": "顯示記憶體紅色門檻",
|
|
210
|
+
"zh-Hans": "显存红色阈值"
|
|
211
|
+
},
|
|
212
|
+
"unit": "%",
|
|
213
|
+
"slider": true
|
|
214
|
+
},
|
|
215
|
+
"type": "integer",
|
|
216
|
+
"minimum": 0,
|
|
217
|
+
"maximum": 100
|
|
218
|
+
},
|
|
219
|
+
"gpus": {
|
|
220
|
+
"title": "GPUs",
|
|
221
|
+
"description": "Empty: all. Indexes or model names, comma-separated: * matches anything, a leading ! leaves out (0, 1, *4090*, !*A6000*).",
|
|
222
|
+
"default": [],
|
|
223
|
+
"x-ui": {
|
|
224
|
+
"label": {
|
|
225
|
+
"en": "GPUs",
|
|
226
|
+
"es": "GPU",
|
|
227
|
+
"de": "GPUs",
|
|
228
|
+
"zh-Hant": "GPU",
|
|
229
|
+
"zh-Hans": "GPU"
|
|
230
|
+
},
|
|
231
|
+
"help": {
|
|
232
|
+
"en": "Empty: all. Indexes or model names, comma-separated: * matches anything, a leading ! leaves out (0, 1, *4090*, !*A6000*).",
|
|
233
|
+
"es": "Vacío: todas. Índices o modelos separados por comas: * vale por cualquier cosa y un ! delante excluye (0, 1, *4090*, !*A6000*).",
|
|
234
|
+
"de": "Leer: alle. Indizes oder Modellnamen, durch Kommas getrennt: * steht für beliebigen Text, ein vorangestelltes ! schließt aus (0, 1, *4090*, !*A6000*).",
|
|
235
|
+
"zh-Hant": "留空:全部。以逗號分隔的索引或型號:* 符合任何內容,開頭加 ! 表示排除(0, 1, *4090*, !*A6000*)。",
|
|
236
|
+
"zh-Hans": "留空:全部。以逗号分隔的索引或型号:* 匹配任意内容,开头加 ! 表示排除(0, 1, *4090*, !*A6000*)。"
|
|
237
|
+
},
|
|
238
|
+
"widget": "filter"
|
|
239
|
+
},
|
|
240
|
+
"type": "array",
|
|
241
|
+
"items": {
|
|
242
|
+
"default": "",
|
|
243
|
+
"x-ui": {
|
|
244
|
+
"placeholder": "name, group/*, !old-*"
|
|
245
|
+
},
|
|
246
|
+
"type": "string"
|
|
247
|
+
},
|
|
248
|
+
"x-filter": true
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"screenshot": "docs/cards.png",
|
|
253
|
+
"animated": false,
|
|
254
|
+
"urgent": true
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"type": "gpu/vram",
|
|
258
|
+
"name": {
|
|
259
|
+
"en": "GPU memory",
|
|
260
|
+
"es": "Memoria de GPU",
|
|
261
|
+
"de": "GPU-Speicher",
|
|
262
|
+
"zh-Hant": "GPU 顯示記憶體",
|
|
263
|
+
"zh-Hans": "GPU 显存"
|
|
264
|
+
},
|
|
265
|
+
"description": {
|
|
266
|
+
"en": "VRAM per GPU as a bar stacked by process (ollama, vllm, python…), with what is left free.",
|
|
267
|
+
"es": "VRAM por GPU como una barra apilada por proceso (ollama, vllm, python…), con lo que queda libre.",
|
|
268
|
+
"de": "VRAM pro GPU als nach Prozessen gestapelter Balken (ollama, vllm, python…), mit dem, was frei bleibt.",
|
|
269
|
+
"zh-Hant": "每張 GPU 的顯示記憶體以依處理程序堆疊的長條呈現(ollama、vllm、python…),並標出剩餘空間。",
|
|
270
|
+
"zh-Hans": "每块 GPU 的显存以按进程堆叠的条形显示(ollama、vllm、python…),并标出剩余空间。"
|
|
271
|
+
},
|
|
272
|
+
"icon": "cpu",
|
|
273
|
+
"category": "system",
|
|
274
|
+
"tags": [
|
|
275
|
+
"gpu",
|
|
276
|
+
"vram",
|
|
277
|
+
"models",
|
|
278
|
+
"ai"
|
|
279
|
+
],
|
|
280
|
+
"size": {
|
|
281
|
+
"min": {
|
|
282
|
+
"w": 200,
|
|
283
|
+
"h": 60
|
|
284
|
+
},
|
|
285
|
+
"preferred": {
|
|
286
|
+
"w": 960,
|
|
287
|
+
"h": 230
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"chrome": "card",
|
|
291
|
+
"sources": [
|
|
292
|
+
"gpu/devices"
|
|
293
|
+
],
|
|
294
|
+
"options": {
|
|
295
|
+
"default": {
|
|
296
|
+
"tempWarn": 80,
|
|
297
|
+
"tempAlert": 90,
|
|
298
|
+
"vramWarn": 90,
|
|
299
|
+
"vramAlert": 97,
|
|
300
|
+
"gpus": [],
|
|
301
|
+
"maxProcesses": 4
|
|
302
|
+
},
|
|
303
|
+
"x-ui": {},
|
|
304
|
+
"type": "object",
|
|
305
|
+
"properties": {
|
|
306
|
+
"tempWarn": {
|
|
307
|
+
"title": "Amber temperature",
|
|
308
|
+
"default": 80,
|
|
309
|
+
"x-ui": {
|
|
310
|
+
"label": {
|
|
311
|
+
"en": "Amber temperature",
|
|
312
|
+
"es": "Temperatura ámbar",
|
|
313
|
+
"de": "Temperatur gelb ab",
|
|
314
|
+
"zh-Hant": "溫度琥珀色門檻",
|
|
315
|
+
"zh-Hans": "温度琥珀色阈值"
|
|
316
|
+
},
|
|
317
|
+
"unit": "°C"
|
|
318
|
+
},
|
|
319
|
+
"type": "integer",
|
|
320
|
+
"minimum": 30,
|
|
321
|
+
"maximum": 120
|
|
322
|
+
},
|
|
323
|
+
"tempAlert": {
|
|
324
|
+
"title": "Red temperature",
|
|
325
|
+
"description": "Of the core (the hotspot or memory sensor when there is no core one). The widget keeps the tile while a GPU is past it.",
|
|
326
|
+
"default": 90,
|
|
327
|
+
"x-ui": {
|
|
328
|
+
"label": {
|
|
329
|
+
"en": "Red temperature",
|
|
330
|
+
"es": "Temperatura roja",
|
|
331
|
+
"de": "Temperatur rot ab",
|
|
332
|
+
"zh-Hant": "溫度紅色門檻",
|
|
333
|
+
"zh-Hans": "温度红色阈值"
|
|
334
|
+
},
|
|
335
|
+
"help": {
|
|
336
|
+
"en": "Of the core (the hotspot or memory sensor when there is no core one). The widget keeps the tile while a GPU is past it.",
|
|
337
|
+
"es": "Del núcleo (o del sensor de hotspot o de memoria si no hay del núcleo). El widget se queda la tesela mientras una GPU la pase.",
|
|
338
|
+
"de": "Des Kerns (Hotspot- oder Speichersensor, wenn es keinen Kernsensor gibt). Das Widget behält die Kachel, solange eine GPU darüber liegt.",
|
|
339
|
+
"zh-Hant": "指核心溫度(沒有核心感測器時改用熱點或記憶體感測器)。只要有 GPU 超過此值,小工具就會持續佔用方格。",
|
|
340
|
+
"zh-Hans": "指核心温度(没有核心传感器时改用热点或显存传感器)。只要有 GPU 超过此值,小组件就会持续占用格子。"
|
|
341
|
+
},
|
|
342
|
+
"unit": "°C"
|
|
343
|
+
},
|
|
344
|
+
"type": "integer",
|
|
345
|
+
"minimum": 30,
|
|
346
|
+
"maximum": 120
|
|
347
|
+
},
|
|
348
|
+
"vramWarn": {
|
|
349
|
+
"title": "Amber VRAM from",
|
|
350
|
+
"default": 90,
|
|
351
|
+
"x-ui": {
|
|
352
|
+
"label": {
|
|
353
|
+
"en": "Amber VRAM from",
|
|
354
|
+
"es": "VRAM ámbar desde",
|
|
355
|
+
"de": "VRAM gelb ab",
|
|
356
|
+
"zh-Hant": "顯示記憶體琥珀色門檻",
|
|
357
|
+
"zh-Hans": "显存琥珀色阈值"
|
|
358
|
+
},
|
|
359
|
+
"unit": "%",
|
|
360
|
+
"slider": true
|
|
361
|
+
},
|
|
362
|
+
"type": "integer",
|
|
363
|
+
"minimum": 0,
|
|
364
|
+
"maximum": 100
|
|
365
|
+
},
|
|
366
|
+
"vramAlert": {
|
|
367
|
+
"title": "Red VRAM from",
|
|
368
|
+
"default": 97,
|
|
369
|
+
"x-ui": {
|
|
370
|
+
"label": {
|
|
371
|
+
"en": "Red VRAM from",
|
|
372
|
+
"es": "VRAM roja desde",
|
|
373
|
+
"de": "VRAM rot ab",
|
|
374
|
+
"zh-Hant": "顯示記憶體紅色門檻",
|
|
375
|
+
"zh-Hans": "显存红色阈值"
|
|
376
|
+
},
|
|
377
|
+
"unit": "%",
|
|
378
|
+
"slider": true
|
|
379
|
+
},
|
|
380
|
+
"type": "integer",
|
|
381
|
+
"minimum": 0,
|
|
382
|
+
"maximum": 100
|
|
383
|
+
},
|
|
384
|
+
"gpus": {
|
|
385
|
+
"title": "GPUs",
|
|
386
|
+
"description": "Empty: all. Indexes or model names, comma-separated: * matches anything, a leading ! leaves out (0, 1, *4090*, !*A6000*).",
|
|
387
|
+
"default": [],
|
|
388
|
+
"x-ui": {
|
|
389
|
+
"label": {
|
|
390
|
+
"en": "GPUs",
|
|
391
|
+
"es": "GPU",
|
|
392
|
+
"de": "GPUs",
|
|
393
|
+
"zh-Hant": "GPU",
|
|
394
|
+
"zh-Hans": "GPU"
|
|
395
|
+
},
|
|
396
|
+
"help": {
|
|
397
|
+
"en": "Empty: all. Indexes or model names, comma-separated: * matches anything, a leading ! leaves out (0, 1, *4090*, !*A6000*).",
|
|
398
|
+
"es": "Vacío: todas. Índices o modelos separados por comas: * vale por cualquier cosa y un ! delante excluye (0, 1, *4090*, !*A6000*).",
|
|
399
|
+
"de": "Leer: alle. Indizes oder Modellnamen, durch Kommas getrennt: * steht für beliebigen Text, ein vorangestelltes ! schließt aus (0, 1, *4090*, !*A6000*).",
|
|
400
|
+
"zh-Hant": "留空:全部。以逗號分隔的索引或型號:* 符合任何內容,開頭加 ! 表示排除(0, 1, *4090*, !*A6000*)。",
|
|
401
|
+
"zh-Hans": "留空:全部。以逗号分隔的索引或型号:* 匹配任意内容,开头加 ! 表示排除(0, 1, *4090*, !*A6000*)。"
|
|
402
|
+
},
|
|
403
|
+
"widget": "filter"
|
|
404
|
+
},
|
|
405
|
+
"type": "array",
|
|
406
|
+
"items": {
|
|
407
|
+
"default": "",
|
|
408
|
+
"x-ui": {
|
|
409
|
+
"placeholder": "name, group/*, !old-*"
|
|
410
|
+
},
|
|
411
|
+
"type": "string"
|
|
412
|
+
},
|
|
413
|
+
"x-filter": true
|
|
414
|
+
},
|
|
415
|
+
"maxProcesses": {
|
|
416
|
+
"title": "Processes per bar",
|
|
417
|
+
"description": "The rest is grouped as \"other\".",
|
|
418
|
+
"default": 4,
|
|
419
|
+
"x-ui": {
|
|
420
|
+
"label": {
|
|
421
|
+
"en": "Processes per bar",
|
|
422
|
+
"es": "Procesos por barra",
|
|
423
|
+
"de": "Prozesse pro Balken",
|
|
424
|
+
"zh-Hant": "每條長條的處理程序數",
|
|
425
|
+
"zh-Hans": "每条的进程数"
|
|
426
|
+
},
|
|
427
|
+
"help": {
|
|
428
|
+
"en": "The rest is grouped as \"other\".",
|
|
429
|
+
"es": "El resto se agrupa como «otros».",
|
|
430
|
+
"de": "Der Rest wird als „andere“ zusammengefasst.",
|
|
431
|
+
"zh-Hant": "其餘歸為「其他」。",
|
|
432
|
+
"zh-Hans": "其余归为“其他”。"
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
"type": "integer",
|
|
436
|
+
"minimum": 1,
|
|
437
|
+
"maximum": 12
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
"screenshot": "docs/vram.png",
|
|
442
|
+
"animated": false,
|
|
443
|
+
"urgent": true
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"type": "gpu/history",
|
|
447
|
+
"name": {
|
|
448
|
+
"en": "GPU history",
|
|
449
|
+
"es": "Historial de GPU",
|
|
450
|
+
"de": "GPU-Verlauf",
|
|
451
|
+
"zh-Hant": "GPU 歷史",
|
|
452
|
+
"zh-Hans": "GPU 历史"
|
|
453
|
+
},
|
|
454
|
+
"description": {
|
|
455
|
+
"en": "Temperature line over load area for the last minutes, per GPU, with the red temperature dashed.",
|
|
456
|
+
"es": "Línea de temperatura sobre área de carga de los últimos minutos, por GPU, con la temperatura roja discontinua.",
|
|
457
|
+
"de": "Temperaturlinie über der Lastfläche der letzten Minuten, pro GPU, mit der roten Temperaturschwelle gestrichelt.",
|
|
458
|
+
"zh-Hant": "每張 GPU 最近幾分鐘的溫度折線疊在負載面積圖上,紅色溫度門檻以虛線標示。",
|
|
459
|
+
"zh-Hans": "每块 GPU 最近几分钟的温度折线叠加在负载面积图上,红色温度阈值以虚线标示。"
|
|
460
|
+
},
|
|
461
|
+
"icon": "chart",
|
|
462
|
+
"category": "system",
|
|
463
|
+
"tags": [
|
|
464
|
+
"gpu",
|
|
465
|
+
"temperature",
|
|
466
|
+
"history",
|
|
467
|
+
"chart"
|
|
468
|
+
],
|
|
469
|
+
"size": {
|
|
470
|
+
"min": {
|
|
471
|
+
"w": 200,
|
|
472
|
+
"h": 100
|
|
473
|
+
},
|
|
474
|
+
"preferred": {
|
|
475
|
+
"w": 960,
|
|
476
|
+
"h": 230
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
"chrome": "card",
|
|
480
|
+
"sources": [
|
|
481
|
+
"gpu/devices"
|
|
482
|
+
],
|
|
483
|
+
"options": {
|
|
484
|
+
"default": {
|
|
485
|
+
"tempWarn": 80,
|
|
486
|
+
"tempAlert": 90,
|
|
487
|
+
"vramWarn": 90,
|
|
488
|
+
"vramAlert": 97,
|
|
489
|
+
"gpus": [],
|
|
490
|
+
"historyMs": 1800000
|
|
491
|
+
},
|
|
492
|
+
"x-ui": {},
|
|
493
|
+
"type": "object",
|
|
494
|
+
"properties": {
|
|
495
|
+
"tempWarn": {
|
|
496
|
+
"title": "Amber temperature",
|
|
497
|
+
"default": 80,
|
|
498
|
+
"x-ui": {
|
|
499
|
+
"label": {
|
|
500
|
+
"en": "Amber temperature",
|
|
501
|
+
"es": "Temperatura ámbar",
|
|
502
|
+
"de": "Temperatur gelb ab",
|
|
503
|
+
"zh-Hant": "溫度琥珀色門檻",
|
|
504
|
+
"zh-Hans": "温度琥珀色阈值"
|
|
505
|
+
},
|
|
506
|
+
"unit": "°C"
|
|
507
|
+
},
|
|
508
|
+
"type": "integer",
|
|
509
|
+
"minimum": 30,
|
|
510
|
+
"maximum": 120
|
|
511
|
+
},
|
|
512
|
+
"tempAlert": {
|
|
513
|
+
"title": "Red temperature",
|
|
514
|
+
"description": "Of the core (the hotspot or memory sensor when there is no core one). The widget keeps the tile while a GPU is past it.",
|
|
515
|
+
"default": 90,
|
|
516
|
+
"x-ui": {
|
|
517
|
+
"label": {
|
|
518
|
+
"en": "Red temperature",
|
|
519
|
+
"es": "Temperatura roja",
|
|
520
|
+
"de": "Temperatur rot ab",
|
|
521
|
+
"zh-Hant": "溫度紅色門檻",
|
|
522
|
+
"zh-Hans": "温度红色阈值"
|
|
523
|
+
},
|
|
524
|
+
"help": {
|
|
525
|
+
"en": "Of the core (the hotspot or memory sensor when there is no core one). The widget keeps the tile while a GPU is past it.",
|
|
526
|
+
"es": "Del núcleo (o del sensor de hotspot o de memoria si no hay del núcleo). El widget se queda la tesela mientras una GPU la pase.",
|
|
527
|
+
"de": "Des Kerns (Hotspot- oder Speichersensor, wenn es keinen Kernsensor gibt). Das Widget behält die Kachel, solange eine GPU darüber liegt.",
|
|
528
|
+
"zh-Hant": "指核心溫度(沒有核心感測器時改用熱點或記憶體感測器)。只要有 GPU 超過此值,小工具就會持續佔用方格。",
|
|
529
|
+
"zh-Hans": "指核心温度(没有核心传感器时改用热点或显存传感器)。只要有 GPU 超过此值,小组件就会持续占用格子。"
|
|
530
|
+
},
|
|
531
|
+
"unit": "°C"
|
|
532
|
+
},
|
|
533
|
+
"type": "integer",
|
|
534
|
+
"minimum": 30,
|
|
535
|
+
"maximum": 120
|
|
536
|
+
},
|
|
537
|
+
"vramWarn": {
|
|
538
|
+
"title": "Amber VRAM from",
|
|
539
|
+
"default": 90,
|
|
540
|
+
"x-ui": {
|
|
541
|
+
"label": {
|
|
542
|
+
"en": "Amber VRAM from",
|
|
543
|
+
"es": "VRAM ámbar desde",
|
|
544
|
+
"de": "VRAM gelb ab",
|
|
545
|
+
"zh-Hant": "顯示記憶體琥珀色門檻",
|
|
546
|
+
"zh-Hans": "显存琥珀色阈值"
|
|
547
|
+
},
|
|
548
|
+
"unit": "%",
|
|
549
|
+
"slider": true
|
|
550
|
+
},
|
|
551
|
+
"type": "integer",
|
|
552
|
+
"minimum": 0,
|
|
553
|
+
"maximum": 100
|
|
554
|
+
},
|
|
555
|
+
"vramAlert": {
|
|
556
|
+
"title": "Red VRAM from",
|
|
557
|
+
"default": 97,
|
|
558
|
+
"x-ui": {
|
|
559
|
+
"label": {
|
|
560
|
+
"en": "Red VRAM from",
|
|
561
|
+
"es": "VRAM roja desde",
|
|
562
|
+
"de": "VRAM rot ab",
|
|
563
|
+
"zh-Hant": "顯示記憶體紅色門檻",
|
|
564
|
+
"zh-Hans": "显存红色阈值"
|
|
565
|
+
},
|
|
566
|
+
"unit": "%",
|
|
567
|
+
"slider": true
|
|
568
|
+
},
|
|
569
|
+
"type": "integer",
|
|
570
|
+
"minimum": 0,
|
|
571
|
+
"maximum": 100
|
|
572
|
+
},
|
|
573
|
+
"gpus": {
|
|
574
|
+
"title": "GPUs",
|
|
575
|
+
"description": "Empty: all. Indexes or model names, comma-separated: * matches anything, a leading ! leaves out (0, 1, *4090*, !*A6000*).",
|
|
576
|
+
"default": [],
|
|
577
|
+
"x-ui": {
|
|
578
|
+
"label": {
|
|
579
|
+
"en": "GPUs",
|
|
580
|
+
"es": "GPU",
|
|
581
|
+
"de": "GPUs",
|
|
582
|
+
"zh-Hant": "GPU",
|
|
583
|
+
"zh-Hans": "GPU"
|
|
584
|
+
},
|
|
585
|
+
"help": {
|
|
586
|
+
"en": "Empty: all. Indexes or model names, comma-separated: * matches anything, a leading ! leaves out (0, 1, *4090*, !*A6000*).",
|
|
587
|
+
"es": "Vacío: todas. Índices o modelos separados por comas: * vale por cualquier cosa y un ! delante excluye (0, 1, *4090*, !*A6000*).",
|
|
588
|
+
"de": "Leer: alle. Indizes oder Modellnamen, durch Kommas getrennt: * steht für beliebigen Text, ein vorangestelltes ! schließt aus (0, 1, *4090*, !*A6000*).",
|
|
589
|
+
"zh-Hant": "留空:全部。以逗號分隔的索引或型號:* 符合任何內容,開頭加 ! 表示排除(0, 1, *4090*, !*A6000*)。",
|
|
590
|
+
"zh-Hans": "留空:全部。以逗号分隔的索引或型号:* 匹配任意内容,开头加 ! 表示排除(0, 1, *4090*, !*A6000*)。"
|
|
591
|
+
},
|
|
592
|
+
"widget": "filter"
|
|
593
|
+
},
|
|
594
|
+
"type": "array",
|
|
595
|
+
"items": {
|
|
596
|
+
"default": "",
|
|
597
|
+
"x-ui": {
|
|
598
|
+
"placeholder": "name, group/*, !old-*"
|
|
599
|
+
},
|
|
600
|
+
"type": "string"
|
|
601
|
+
},
|
|
602
|
+
"x-filter": true
|
|
603
|
+
},
|
|
604
|
+
"historyMs": {
|
|
605
|
+
"title": "Time shown",
|
|
606
|
+
"description": "Up to the history kept by the source.",
|
|
607
|
+
"default": 1800000,
|
|
608
|
+
"x-ui": {
|
|
609
|
+
"label": {
|
|
610
|
+
"en": "Time shown",
|
|
611
|
+
"es": "Tiempo mostrado",
|
|
612
|
+
"de": "Angezeigter Zeitraum",
|
|
613
|
+
"zh-Hant": "顯示時長",
|
|
614
|
+
"zh-Hans": "显示时长"
|
|
615
|
+
},
|
|
616
|
+
"help": {
|
|
617
|
+
"en": "Up to the history kept by the source.",
|
|
618
|
+
"es": "Hasta el historial que guarda la fuente.",
|
|
619
|
+
"de": "Bis zum Verlauf, den die Datenquelle aufbewahrt.",
|
|
620
|
+
"zh-Hant": "最多為資料來源保留的歷史長度。",
|
|
621
|
+
"zh-Hans": "最多为数据源保留的历史长度。"
|
|
622
|
+
},
|
|
623
|
+
"unit": "ms"
|
|
624
|
+
},
|
|
625
|
+
"type": "integer",
|
|
626
|
+
"minimum": 60000,
|
|
627
|
+
"maximum": 14400000
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
"screenshot": "docs/history.png",
|
|
632
|
+
"animated": false,
|
|
633
|
+
"urgent": true
|
|
634
|
+
}
|
|
635
|
+
],
|
|
636
|
+
"sources": [
|
|
637
|
+
{
|
|
638
|
+
"type": "gpu/devices",
|
|
639
|
+
"name": {
|
|
640
|
+
"en": "GPUs",
|
|
641
|
+
"es": "GPU",
|
|
642
|
+
"de": "GPUs",
|
|
643
|
+
"zh-Hant": "GPU",
|
|
644
|
+
"zh-Hans": "GPU"
|
|
645
|
+
},
|
|
646
|
+
"description": {
|
|
647
|
+
"en": "Temperature, load, VRAM (and who holds it), power, fan and clocks per GPU, from this machine, another over ssh, or a Prometheus exporter.",
|
|
648
|
+
"es": "Temperatura, carga, VRAM (y quién la ocupa), potencia, ventilador y relojes por GPU, de esta máquina, de otra por ssh o de un exporter de Prometheus.",
|
|
649
|
+
"de": "Temperatur, Last, VRAM (und wer ihn belegt), Leistung, Lüfter und Takt pro GPU, von diesem Rechner, einem anderen über ssh oder einem Prometheus-Exporter.",
|
|
650
|
+
"zh-Hant": "每張 GPU 的溫度、負載、顯示記憶體(及其佔用者)、功率、風扇與時脈,來源可為本機、透過 ssh 連線的另一台機器或 Prometheus exporter。",
|
|
651
|
+
"zh-Hans": "每块 GPU 的温度、负载、显存(及其占用者)、功率、风扇和频率,可来自本机、通过 ssh 连接的另一台机器或 Prometheus exporter。"
|
|
652
|
+
},
|
|
653
|
+
"polled": true,
|
|
654
|
+
"intervalMs": 5000,
|
|
655
|
+
"options": {
|
|
656
|
+
"default": {
|
|
657
|
+
"backend": "auto",
|
|
658
|
+
"ssh": "",
|
|
659
|
+
"url": "",
|
|
660
|
+
"token": "",
|
|
661
|
+
"label": "",
|
|
662
|
+
"processes": true,
|
|
663
|
+
"historyMs": 1800000
|
|
664
|
+
},
|
|
665
|
+
"x-ui": {},
|
|
666
|
+
"type": "object",
|
|
667
|
+
"properties": {
|
|
668
|
+
"backend": {
|
|
669
|
+
"title": "Back end",
|
|
670
|
+
"description": "auto tries the metrics URL (if set), nvidia-smi, rocm-smi / amd-smi and sysfs, in that order.",
|
|
671
|
+
"default": "auto",
|
|
672
|
+
"x-ui": {
|
|
673
|
+
"label": {
|
|
674
|
+
"en": "Back end",
|
|
675
|
+
"es": "Origen",
|
|
676
|
+
"de": "Backend",
|
|
677
|
+
"zh-Hant": "後端",
|
|
678
|
+
"zh-Hans": "后端"
|
|
679
|
+
},
|
|
680
|
+
"help": {
|
|
681
|
+
"en": "auto tries the metrics URL (if set), nvidia-smi, rocm-smi / amd-smi and sysfs, in that order.",
|
|
682
|
+
"es": "auto prueba la URL de métricas (si hay), nvidia-smi, rocm-smi / amd-smi y sysfs, por ese orden.",
|
|
683
|
+
"de": "Automatisch probiert die Metrik-URL (falls eingetragen), nvidia-smi, rocm-smi / amd-smi und sysfs, in dieser Reihenfolge.",
|
|
684
|
+
"zh-Hant": "auto 會依序嘗試指標 URL(若有設定)、nvidia-smi、rocm-smi / amd-smi 及 sysfs。",
|
|
685
|
+
"zh-Hans": "auto 会依次尝试指标 URL(如已设置)、nvidia-smi、rocm-smi / amd-smi 和 sysfs。"
|
|
686
|
+
},
|
|
687
|
+
"labels": {
|
|
688
|
+
"auto": {
|
|
689
|
+
"en": "Automatic",
|
|
690
|
+
"es": "Automático",
|
|
691
|
+
"de": "Automatisch",
|
|
692
|
+
"zh-Hant": "自動",
|
|
693
|
+
"zh-Hans": "自动"
|
|
694
|
+
},
|
|
695
|
+
"nvidia": "NVIDIA (nvidia-smi)",
|
|
696
|
+
"amd": "AMD (rocm-smi, amd-smi, sysfs)",
|
|
697
|
+
"intel": {
|
|
698
|
+
"en": "Intel (sysfs, best effort)",
|
|
699
|
+
"es": "Intel (sysfs, lo que se pueda)",
|
|
700
|
+
"de": "Intel (sysfs, ohne Gewähr)",
|
|
701
|
+
"zh-Hant": "Intel(sysfs,盡力而為)",
|
|
702
|
+
"zh-Hans": "Intel(sysfs,尽力而为)"
|
|
703
|
+
},
|
|
704
|
+
"prometheus": "Prometheus (DCGM / nvidia_gpu_exporter)"
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
"type": "string",
|
|
708
|
+
"enum": [
|
|
709
|
+
"auto",
|
|
710
|
+
"nvidia",
|
|
711
|
+
"amd",
|
|
712
|
+
"intel",
|
|
713
|
+
"prometheus"
|
|
714
|
+
]
|
|
715
|
+
},
|
|
716
|
+
"ssh": {
|
|
717
|
+
"title": "Read over ssh",
|
|
718
|
+
"description": "Runs nvidia-smi / rocm-smi on that host with ssh -o BatchMode=yes: needs key login. Empty = this machine.",
|
|
719
|
+
"default": "",
|
|
720
|
+
"x-ui": {
|
|
721
|
+
"label": {
|
|
722
|
+
"en": "Read over ssh",
|
|
723
|
+
"es": "Leer por ssh",
|
|
724
|
+
"de": "Über ssh lesen",
|
|
725
|
+
"zh-Hant": "透過 ssh 讀取",
|
|
726
|
+
"zh-Hans": "通过 ssh 读取"
|
|
727
|
+
},
|
|
728
|
+
"help": {
|
|
729
|
+
"en": "Runs nvidia-smi / rocm-smi on that host with ssh -o BatchMode=yes: needs key login. Empty = this machine.",
|
|
730
|
+
"es": "Ejecuta nvidia-smi / rocm-smi en ese host con ssh -o BatchMode=yes: necesita acceso por clave. Vacío = esta máquina.",
|
|
731
|
+
"de": "Führt nvidia-smi / rocm-smi auf diesem Host mit ssh -o BatchMode=yes aus: braucht Anmeldung per Schlüssel. Leer = dieser Rechner.",
|
|
732
|
+
"zh-Hant": "以 ssh -o BatchMode=yes 在該主機上執行 nvidia-smi / rocm-smi:需要金鑰登入。留空 = 本機。",
|
|
733
|
+
"zh-Hans": "用 ssh -o BatchMode=yes 在该主机上运行 nvidia-smi / rocm-smi:需要密钥登录。留空 = 本机。"
|
|
734
|
+
},
|
|
735
|
+
"placeholder": "user@gpubox"
|
|
736
|
+
},
|
|
737
|
+
"x-risk": "exec",
|
|
738
|
+
"type": "string"
|
|
739
|
+
},
|
|
740
|
+
"url": {
|
|
741
|
+
"title": "Metrics URL",
|
|
742
|
+
"description": "DCGM exporter (port 9400) or nvidia_gpu_exporter (port 9835). Secret: leave it empty (or a placeholder such as \"<token>\"). Kiosko keeps the value it already has, or asks for it in the editor.",
|
|
743
|
+
"default": "",
|
|
744
|
+
"x-ui": {
|
|
745
|
+
"label": {
|
|
746
|
+
"en": "Metrics URL",
|
|
747
|
+
"es": "URL de métricas",
|
|
748
|
+
"de": "Metrik-URL",
|
|
749
|
+
"zh-Hant": "指標 URL",
|
|
750
|
+
"zh-Hans": "指标 URL"
|
|
751
|
+
},
|
|
752
|
+
"help": {
|
|
753
|
+
"en": "DCGM exporter (port 9400) or nvidia_gpu_exporter (port 9835).",
|
|
754
|
+
"es": "DCGM exporter (puerto 9400) o nvidia_gpu_exporter (puerto 9835).",
|
|
755
|
+
"de": "DCGM-Exporter (Port 9400) oder nvidia_gpu_exporter (Port 9835).",
|
|
756
|
+
"zh-Hant": "DCGM exporter(連接埠 9400)或 nvidia_gpu_exporter(連接埠 9835)。",
|
|
757
|
+
"zh-Hans": "DCGM exporter(端口 9400)或 nvidia_gpu_exporter(端口 9835)。"
|
|
758
|
+
},
|
|
759
|
+
"secret": true,
|
|
760
|
+
"placeholder": "http://gpubox:9400/metrics",
|
|
761
|
+
"format": "url"
|
|
762
|
+
},
|
|
763
|
+
"x-secret": true,
|
|
764
|
+
"x-risk": "network",
|
|
765
|
+
"type": "string"
|
|
766
|
+
},
|
|
767
|
+
"token": {
|
|
768
|
+
"title": "Metrics bearer token",
|
|
769
|
+
"description": "Only if the metrics URL is behind auth. Secret: leave it empty (or a placeholder such as \"<token>\"). Kiosko keeps the value it already has, or asks for it in the editor.",
|
|
770
|
+
"default": "",
|
|
771
|
+
"x-ui": {
|
|
772
|
+
"label": {
|
|
773
|
+
"en": "Metrics bearer token",
|
|
774
|
+
"es": "Token bearer de las métricas",
|
|
775
|
+
"de": "Bearer-Token für Metriken",
|
|
776
|
+
"zh-Hant": "指標 Bearer 權杖",
|
|
777
|
+
"zh-Hans": "指标 Bearer 令牌"
|
|
778
|
+
},
|
|
779
|
+
"help": {
|
|
780
|
+
"en": "Only if the metrics URL is behind auth.",
|
|
781
|
+
"es": "Solo si la URL de métricas pide autenticación.",
|
|
782
|
+
"de": "Nur wenn die Metrik-URL eine Anmeldung verlangt.",
|
|
783
|
+
"zh-Hant": "僅在指標 URL 需要驗證時填寫。",
|
|
784
|
+
"zh-Hans": "仅当指标 URL 需要认证时填写。"
|
|
785
|
+
},
|
|
786
|
+
"advanced": true,
|
|
787
|
+
"secret": true
|
|
788
|
+
},
|
|
789
|
+
"x-secret": true,
|
|
790
|
+
"type": "string"
|
|
791
|
+
},
|
|
792
|
+
"label": {
|
|
793
|
+
"title": "Host label",
|
|
794
|
+
"description": "Shown above the GPUs. Defaults to the ssh host.",
|
|
795
|
+
"default": "",
|
|
796
|
+
"x-ui": {
|
|
797
|
+
"label": {
|
|
798
|
+
"en": "Host label",
|
|
799
|
+
"es": "Nombre del host",
|
|
800
|
+
"de": "Host-Bezeichnung",
|
|
801
|
+
"zh-Hant": "主機標籤",
|
|
802
|
+
"zh-Hans": "主机标签"
|
|
803
|
+
},
|
|
804
|
+
"help": {
|
|
805
|
+
"en": "Shown above the GPUs. Defaults to the ssh host.",
|
|
806
|
+
"es": "Se muestra encima de las GPU. Por defecto, el host de ssh.",
|
|
807
|
+
"de": "Wird über den GPUs angezeigt. Standard ist der ssh-Host.",
|
|
808
|
+
"zh-Hant": "顯示在 GPU 上方。預設為 ssh 主機。",
|
|
809
|
+
"zh-Hans": "显示在 GPU 上方。默认为 ssh 主机。"
|
|
810
|
+
},
|
|
811
|
+
"placeholder": "gpubox"
|
|
812
|
+
},
|
|
813
|
+
"type": "string"
|
|
814
|
+
},
|
|
815
|
+
"processes": {
|
|
816
|
+
"title": "Per-process VRAM",
|
|
817
|
+
"description": "One more nvidia-smi call per reading.",
|
|
818
|
+
"default": true,
|
|
819
|
+
"x-ui": {
|
|
820
|
+
"label": {
|
|
821
|
+
"en": "Per-process VRAM",
|
|
822
|
+
"es": "VRAM por proceso",
|
|
823
|
+
"de": "VRAM pro Prozess",
|
|
824
|
+
"zh-Hant": "各處理程序的顯示記憶體",
|
|
825
|
+
"zh-Hans": "各进程的显存"
|
|
826
|
+
},
|
|
827
|
+
"help": {
|
|
828
|
+
"en": "One more nvidia-smi call per reading.",
|
|
829
|
+
"es": "Una llamada más a nvidia-smi por lectura.",
|
|
830
|
+
"de": "Ein zusätzlicher nvidia-smi-Aufruf pro Abfrage.",
|
|
831
|
+
"zh-Hant": "每次讀取多呼叫一次 nvidia-smi。",
|
|
832
|
+
"zh-Hans": "每次读取多调用一次 nvidia-smi。"
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
"type": "boolean"
|
|
836
|
+
},
|
|
837
|
+
"historyMs": {
|
|
838
|
+
"title": "History kept",
|
|
839
|
+
"description": "How far back GPU history can look.",
|
|
840
|
+
"default": 1800000,
|
|
841
|
+
"x-ui": {
|
|
842
|
+
"label": {
|
|
843
|
+
"en": "History kept",
|
|
844
|
+
"es": "Historial guardado",
|
|
845
|
+
"de": "Aufbewahrter Verlauf",
|
|
846
|
+
"zh-Hant": "歷史保留時長",
|
|
847
|
+
"zh-Hans": "历史保留时长"
|
|
848
|
+
},
|
|
849
|
+
"help": {
|
|
850
|
+
"en": "How far back GPU history can look.",
|
|
851
|
+
"es": "Hasta dónde puede mirar atrás el historial de GPU.",
|
|
852
|
+
"de": "Wie weit der GPU-Verlauf zurückreichen kann.",
|
|
853
|
+
"zh-Hant": "GPU 歷史最多可回溯多久。",
|
|
854
|
+
"zh-Hans": "GPU 历史最多可回溯多久。"
|
|
855
|
+
},
|
|
856
|
+
"unit": "ms"
|
|
857
|
+
},
|
|
858
|
+
"type": "integer",
|
|
859
|
+
"minimum": 60000,
|
|
860
|
+
"maximum": 14400000
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
],
|
|
866
|
+
"interludes": [],
|
|
867
|
+
"templates": [],
|
|
868
|
+
"support": {
|
|
869
|
+
"issues": "https://github.com/kiosko-lcd/kiosko-plugin-gpu/issues",
|
|
870
|
+
"docs": "https://github.com/kiosko-lcd/kiosko-plugin-gpu#readme"
|
|
871
|
+
}
|
|
872
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kiosko-plugin-gpu",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "GPU monitor for local AI boxes: temperature, load, VRAM by process and history, from nvidia-smi, rocm-smi, sysfs, Prometheus (DCGM) or over ssh.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,10 +28,21 @@
|
|
|
28
28
|
},
|
|
29
29
|
"kiosko": {
|
|
30
30
|
"plugin": "./dist/index.js",
|
|
31
|
-
"id": "gpu"
|
|
31
|
+
"id": "gpu",
|
|
32
|
+
"sdk": "^0.2.0",
|
|
33
|
+
"languages": [
|
|
34
|
+
"en",
|
|
35
|
+
"es",
|
|
36
|
+
"de",
|
|
37
|
+
"zh-Hant",
|
|
38
|
+
"zh-Hans"
|
|
39
|
+
],
|
|
40
|
+
"manifest": "./kiosko-manifest.json"
|
|
32
41
|
},
|
|
33
42
|
"files": [
|
|
34
43
|
"dist",
|
|
44
|
+
"docs",
|
|
45
|
+
"kiosko-manifest.json",
|
|
35
46
|
"README.md",
|
|
36
47
|
"LICENSE"
|
|
37
48
|
],
|
|
@@ -44,8 +55,11 @@
|
|
|
44
55
|
"check": "tsc -p tsconfig.json",
|
|
45
56
|
"prepublishOnly": "npm run build"
|
|
46
57
|
},
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"@kiosko/sdk": "^0.2.0"
|
|
60
|
+
},
|
|
47
61
|
"devDependencies": {
|
|
48
|
-
"@kiosko/sdk": "^0.2.
|
|
62
|
+
"@kiosko/sdk": "^0.2.1",
|
|
49
63
|
"@loksly/lcd-canvas-kit": "^0.2.0",
|
|
50
64
|
"@napi-rs/canvas": "^1.0.10",
|
|
51
65
|
"@types/node": "^24.0.0",
|