kiosko-plugin-gpu 0.1.0 → 0.2.1

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 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
@@ -647,14 +647,19 @@ function drawHistory(g, ctx, s, th, windowMs) {
647
647
  if (pts.length < 2) {
648
648
  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
649
  } else {
650
+ g.save();
651
+ g.beginPath();
652
+ g.rect(r.x, cy, r.w, ch);
653
+ g.clip();
650
654
  area(g, pts, px, (p) => p[2] === null ? null : cy + ch - clamp(p[2], 0, 100) / 100 * ch, cy + ch, c.inkFaint);
651
655
  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));
656
+ g.restore();
652
657
  }
653
658
  g.strokeStyle = c.surfaceEdge;
654
659
  g.strokeRect(r.x + 0.5, cy + 0.5, r.w - 1, ch - 1);
655
660
  if (footH) {
656
- const fy = cy + ch + 14 * sc;
657
661
  const lbl = { size: Math.max(9, Math.round(11 * sc)), family: f.sansBold, tracking: 2 * sc, smallCaps: true, color: c.inkFaint };
662
+ const fy = Math.min(cy + ch + 14 * sc, r.y + r.h - Math.ceil(lbl.size * 0.32));
658
663
  kit.drawClipped(g, `${ctx.t(TEXT.temp)} \u2014 ${ctx.t(TEXT.util)} \u2592`, r.x, fy, r.w / 2, lbl);
659
664
  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
665
  }
@@ -896,7 +901,9 @@ var historyWidget = defineWidget({
896
901
  var index_default = definePlugin({
897
902
  id: "gpu",
898
903
  name: { en: "GPU", es: "GPU" },
899
- version: "0.1.0",
904
+ version: "0.2.1",
905
+ sdk: "^0.2.0",
906
+ permissions: { exec: ["nvidia-smi", "rocm-smi", "amd-smi", "ssh"], files: ["/sys/class/drm"], network: ["user"] },
900
907
  description: {
901
908
  en: "The GPUs of your AI box: temperature, load, VRAM by process and history. Local, over ssh or from a Prometheus exporter.",
902
909
  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."
package/docs/cards.png ADDED
Binary file
Binary file
package/docs/vram.png ADDED
Binary file
@@ -0,0 +1,712 @@
1
+ {
2
+ "manifest": 1,
3
+ "id": "gpu",
4
+ "package": "kiosko-plugin-gpu",
5
+ "name": {
6
+ "en": "GPU",
7
+ "es": "GPU"
8
+ },
9
+ "version": "0.2.1",
10
+ "description": {
11
+ "en": "The GPUs of your AI box: temperature, load, VRAM by process and history. Local, over ssh or from a Prometheus exporter.",
12
+ "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."
13
+ },
14
+ "author": "Kiosko",
15
+ "license": "MIT",
16
+ "homepage": "https://github.com/kiosko-lcd/kiosko-plugin-gpu#readme",
17
+ "repository": "https://github.com/kiosko-lcd/kiosko-plugin-gpu.git",
18
+ "icon": "cpu",
19
+ "sdk": "^0.2.0",
20
+ "platforms": [
21
+ "linux",
22
+ "darwin",
23
+ "win32"
24
+ ],
25
+ "languages": [
26
+ "en",
27
+ "es"
28
+ ],
29
+ "categories": [
30
+ "system"
31
+ ],
32
+ "tags": [
33
+ "gpu",
34
+ "nvidia",
35
+ "amd",
36
+ "vram",
37
+ "temperature",
38
+ "ai",
39
+ "models",
40
+ "history",
41
+ "chart"
42
+ ],
43
+ "permissions": {
44
+ "exec": [
45
+ "nvidia-smi",
46
+ "rocm-smi",
47
+ "amd-smi",
48
+ "ssh"
49
+ ],
50
+ "files": [
51
+ "/sys/class/drm"
52
+ ],
53
+ "network": [
54
+ "user"
55
+ ]
56
+ },
57
+ "riskyOptions": [
58
+ {
59
+ "path": "gpu/devices: ssh",
60
+ "risk": [
61
+ "exec"
62
+ ],
63
+ "secret": false
64
+ },
65
+ {
66
+ "path": "gpu/devices: url",
67
+ "risk": [
68
+ "network"
69
+ ],
70
+ "secret": true
71
+ },
72
+ {
73
+ "path": "gpu/devices: token",
74
+ "risk": [],
75
+ "secret": true
76
+ }
77
+ ],
78
+ "requires": [],
79
+ "optional": [],
80
+ "widgets": [
81
+ {
82
+ "type": "gpu/cards",
83
+ "name": {
84
+ "en": "GPU cards",
85
+ "es": "Tarjetas de GPU"
86
+ },
87
+ "description": {
88
+ "en": "One column per GPU: temperature, load, VRAM and power bars, fan and throttling. Dim until a threshold is crossed.",
89
+ "es": "Una columna por GPU: temperatura, carga, barras de VRAM y potencia, ventilador y limitación. Apagada hasta cruzar un umbral."
90
+ },
91
+ "icon": "cpu",
92
+ "category": "system",
93
+ "tags": [
94
+ "gpu",
95
+ "nvidia",
96
+ "amd",
97
+ "vram",
98
+ "temperature",
99
+ "ai"
100
+ ],
101
+ "size": {
102
+ "min": {
103
+ "w": 150,
104
+ "h": 120
105
+ },
106
+ "preferred": {
107
+ "w": 640,
108
+ "h": 462
109
+ }
110
+ },
111
+ "chrome": "card",
112
+ "sources": [
113
+ "gpu/devices"
114
+ ],
115
+ "options": {
116
+ "default": {
117
+ "tempWarn": 80,
118
+ "tempAlert": 90,
119
+ "vramWarn": 90,
120
+ "vramAlert": 97,
121
+ "gpus": []
122
+ },
123
+ "x-ui": {},
124
+ "type": "object",
125
+ "properties": {
126
+ "tempWarn": {
127
+ "title": "Amber temperature",
128
+ "default": 80,
129
+ "x-ui": {
130
+ "label": {
131
+ "en": "Amber temperature",
132
+ "es": "Temperatura ámbar"
133
+ },
134
+ "unit": "°C"
135
+ },
136
+ "type": "integer",
137
+ "minimum": 30,
138
+ "maximum": 120
139
+ },
140
+ "tempAlert": {
141
+ "title": "Red temperature",
142
+ "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.",
143
+ "default": 90,
144
+ "x-ui": {
145
+ "label": {
146
+ "en": "Red temperature",
147
+ "es": "Temperatura roja"
148
+ },
149
+ "help": {
150
+ "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.",
151
+ "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."
152
+ },
153
+ "unit": "°C"
154
+ },
155
+ "type": "integer",
156
+ "minimum": 30,
157
+ "maximum": 120
158
+ },
159
+ "vramWarn": {
160
+ "title": "Amber VRAM from",
161
+ "default": 90,
162
+ "x-ui": {
163
+ "label": {
164
+ "en": "Amber VRAM from",
165
+ "es": "VRAM ámbar desde"
166
+ },
167
+ "unit": "%",
168
+ "slider": true
169
+ },
170
+ "type": "integer",
171
+ "minimum": 0,
172
+ "maximum": 100
173
+ },
174
+ "vramAlert": {
175
+ "title": "Red VRAM from",
176
+ "default": 97,
177
+ "x-ui": {
178
+ "label": {
179
+ "en": "Red VRAM from",
180
+ "es": "VRAM roja desde"
181
+ },
182
+ "unit": "%",
183
+ "slider": true
184
+ },
185
+ "type": "integer",
186
+ "minimum": 0,
187
+ "maximum": 100
188
+ },
189
+ "gpus": {
190
+ "title": "GPUs",
191
+ "description": "Empty: all. Indexes or model names, comma-separated: * matches anything, a leading ! leaves out (0, 1, *4090*, !*A6000*).",
192
+ "default": [],
193
+ "x-ui": {
194
+ "label": {
195
+ "en": "GPUs",
196
+ "es": "GPU"
197
+ },
198
+ "help": {
199
+ "en": "Empty: all. Indexes or model names, comma-separated: * matches anything, a leading ! leaves out (0, 1, *4090*, !*A6000*).",
200
+ "es": "Vacío: todas. Índices o modelos separados por comas: * vale por cualquier cosa y un ! delante excluye (0, 1, *4090*, !*A6000*)."
201
+ },
202
+ "widget": "filter"
203
+ },
204
+ "type": "array",
205
+ "items": {
206
+ "default": "",
207
+ "x-ui": {
208
+ "placeholder": "name, group/*, !old-*"
209
+ },
210
+ "type": "string"
211
+ },
212
+ "x-filter": true
213
+ }
214
+ }
215
+ },
216
+ "screenshot": "docs/cards.png",
217
+ "animated": false,
218
+ "urgent": true
219
+ },
220
+ {
221
+ "type": "gpu/vram",
222
+ "name": {
223
+ "en": "GPU memory",
224
+ "es": "Memoria de GPU"
225
+ },
226
+ "description": {
227
+ "en": "VRAM per GPU as a bar stacked by process (ollama, vllm, python…), with what is left free.",
228
+ "es": "VRAM por GPU como una barra apilada por proceso (ollama, vllm, python…), con lo que queda libre."
229
+ },
230
+ "icon": "cpu",
231
+ "category": "system",
232
+ "tags": [
233
+ "gpu",
234
+ "vram",
235
+ "models",
236
+ "ai"
237
+ ],
238
+ "size": {
239
+ "min": {
240
+ "w": 200,
241
+ "h": 60
242
+ },
243
+ "preferred": {
244
+ "w": 960,
245
+ "h": 230
246
+ }
247
+ },
248
+ "chrome": "card",
249
+ "sources": [
250
+ "gpu/devices"
251
+ ],
252
+ "options": {
253
+ "default": {
254
+ "tempWarn": 80,
255
+ "tempAlert": 90,
256
+ "vramWarn": 90,
257
+ "vramAlert": 97,
258
+ "gpus": [],
259
+ "maxProcesses": 4
260
+ },
261
+ "x-ui": {},
262
+ "type": "object",
263
+ "properties": {
264
+ "tempWarn": {
265
+ "title": "Amber temperature",
266
+ "default": 80,
267
+ "x-ui": {
268
+ "label": {
269
+ "en": "Amber temperature",
270
+ "es": "Temperatura ámbar"
271
+ },
272
+ "unit": "°C"
273
+ },
274
+ "type": "integer",
275
+ "minimum": 30,
276
+ "maximum": 120
277
+ },
278
+ "tempAlert": {
279
+ "title": "Red temperature",
280
+ "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.",
281
+ "default": 90,
282
+ "x-ui": {
283
+ "label": {
284
+ "en": "Red temperature",
285
+ "es": "Temperatura roja"
286
+ },
287
+ "help": {
288
+ "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.",
289
+ "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."
290
+ },
291
+ "unit": "°C"
292
+ },
293
+ "type": "integer",
294
+ "minimum": 30,
295
+ "maximum": 120
296
+ },
297
+ "vramWarn": {
298
+ "title": "Amber VRAM from",
299
+ "default": 90,
300
+ "x-ui": {
301
+ "label": {
302
+ "en": "Amber VRAM from",
303
+ "es": "VRAM ámbar desde"
304
+ },
305
+ "unit": "%",
306
+ "slider": true
307
+ },
308
+ "type": "integer",
309
+ "minimum": 0,
310
+ "maximum": 100
311
+ },
312
+ "vramAlert": {
313
+ "title": "Red VRAM from",
314
+ "default": 97,
315
+ "x-ui": {
316
+ "label": {
317
+ "en": "Red VRAM from",
318
+ "es": "VRAM roja desde"
319
+ },
320
+ "unit": "%",
321
+ "slider": true
322
+ },
323
+ "type": "integer",
324
+ "minimum": 0,
325
+ "maximum": 100
326
+ },
327
+ "gpus": {
328
+ "title": "GPUs",
329
+ "description": "Empty: all. Indexes or model names, comma-separated: * matches anything, a leading ! leaves out (0, 1, *4090*, !*A6000*).",
330
+ "default": [],
331
+ "x-ui": {
332
+ "label": {
333
+ "en": "GPUs",
334
+ "es": "GPU"
335
+ },
336
+ "help": {
337
+ "en": "Empty: all. Indexes or model names, comma-separated: * matches anything, a leading ! leaves out (0, 1, *4090*, !*A6000*).",
338
+ "es": "Vacío: todas. Índices o modelos separados por comas: * vale por cualquier cosa y un ! delante excluye (0, 1, *4090*, !*A6000*)."
339
+ },
340
+ "widget": "filter"
341
+ },
342
+ "type": "array",
343
+ "items": {
344
+ "default": "",
345
+ "x-ui": {
346
+ "placeholder": "name, group/*, !old-*"
347
+ },
348
+ "type": "string"
349
+ },
350
+ "x-filter": true
351
+ },
352
+ "maxProcesses": {
353
+ "title": "Processes per bar",
354
+ "description": "The rest is grouped as \"other\".",
355
+ "default": 4,
356
+ "x-ui": {
357
+ "label": {
358
+ "en": "Processes per bar",
359
+ "es": "Procesos por barra"
360
+ },
361
+ "help": {
362
+ "en": "The rest is grouped as \"other\".",
363
+ "es": "El resto se agrupa como «otros»."
364
+ }
365
+ },
366
+ "type": "integer",
367
+ "minimum": 1,
368
+ "maximum": 12
369
+ }
370
+ }
371
+ },
372
+ "screenshot": "docs/vram.png",
373
+ "animated": false,
374
+ "urgent": true
375
+ },
376
+ {
377
+ "type": "gpu/history",
378
+ "name": {
379
+ "en": "GPU history",
380
+ "es": "Historial de GPU"
381
+ },
382
+ "description": {
383
+ "en": "Temperature line over load area for the last minutes, per GPU, with the red temperature dashed.",
384
+ "es": "Línea de temperatura sobre área de carga de los últimos minutos, por GPU, con la temperatura roja discontinua."
385
+ },
386
+ "icon": "chart",
387
+ "category": "system",
388
+ "tags": [
389
+ "gpu",
390
+ "temperature",
391
+ "history",
392
+ "chart"
393
+ ],
394
+ "size": {
395
+ "min": {
396
+ "w": 200,
397
+ "h": 100
398
+ },
399
+ "preferred": {
400
+ "w": 960,
401
+ "h": 230
402
+ }
403
+ },
404
+ "chrome": "card",
405
+ "sources": [
406
+ "gpu/devices"
407
+ ],
408
+ "options": {
409
+ "default": {
410
+ "tempWarn": 80,
411
+ "tempAlert": 90,
412
+ "vramWarn": 90,
413
+ "vramAlert": 97,
414
+ "gpus": [],
415
+ "historyMs": 1800000
416
+ },
417
+ "x-ui": {},
418
+ "type": "object",
419
+ "properties": {
420
+ "tempWarn": {
421
+ "title": "Amber temperature",
422
+ "default": 80,
423
+ "x-ui": {
424
+ "label": {
425
+ "en": "Amber temperature",
426
+ "es": "Temperatura ámbar"
427
+ },
428
+ "unit": "°C"
429
+ },
430
+ "type": "integer",
431
+ "minimum": 30,
432
+ "maximum": 120
433
+ },
434
+ "tempAlert": {
435
+ "title": "Red temperature",
436
+ "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.",
437
+ "default": 90,
438
+ "x-ui": {
439
+ "label": {
440
+ "en": "Red temperature",
441
+ "es": "Temperatura roja"
442
+ },
443
+ "help": {
444
+ "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.",
445
+ "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."
446
+ },
447
+ "unit": "°C"
448
+ },
449
+ "type": "integer",
450
+ "minimum": 30,
451
+ "maximum": 120
452
+ },
453
+ "vramWarn": {
454
+ "title": "Amber VRAM from",
455
+ "default": 90,
456
+ "x-ui": {
457
+ "label": {
458
+ "en": "Amber VRAM from",
459
+ "es": "VRAM ámbar desde"
460
+ },
461
+ "unit": "%",
462
+ "slider": true
463
+ },
464
+ "type": "integer",
465
+ "minimum": 0,
466
+ "maximum": 100
467
+ },
468
+ "vramAlert": {
469
+ "title": "Red VRAM from",
470
+ "default": 97,
471
+ "x-ui": {
472
+ "label": {
473
+ "en": "Red VRAM from",
474
+ "es": "VRAM roja desde"
475
+ },
476
+ "unit": "%",
477
+ "slider": true
478
+ },
479
+ "type": "integer",
480
+ "minimum": 0,
481
+ "maximum": 100
482
+ },
483
+ "gpus": {
484
+ "title": "GPUs",
485
+ "description": "Empty: all. Indexes or model names, comma-separated: * matches anything, a leading ! leaves out (0, 1, *4090*, !*A6000*).",
486
+ "default": [],
487
+ "x-ui": {
488
+ "label": {
489
+ "en": "GPUs",
490
+ "es": "GPU"
491
+ },
492
+ "help": {
493
+ "en": "Empty: all. Indexes or model names, comma-separated: * matches anything, a leading ! leaves out (0, 1, *4090*, !*A6000*).",
494
+ "es": "Vacío: todas. Índices o modelos separados por comas: * vale por cualquier cosa y un ! delante excluye (0, 1, *4090*, !*A6000*)."
495
+ },
496
+ "widget": "filter"
497
+ },
498
+ "type": "array",
499
+ "items": {
500
+ "default": "",
501
+ "x-ui": {
502
+ "placeholder": "name, group/*, !old-*"
503
+ },
504
+ "type": "string"
505
+ },
506
+ "x-filter": true
507
+ },
508
+ "historyMs": {
509
+ "title": "Time shown",
510
+ "description": "Up to the history kept by the source.",
511
+ "default": 1800000,
512
+ "x-ui": {
513
+ "label": {
514
+ "en": "Time shown",
515
+ "es": "Tiempo mostrado"
516
+ },
517
+ "help": {
518
+ "en": "Up to the history kept by the source.",
519
+ "es": "Hasta el historial que guarda la fuente."
520
+ },
521
+ "unit": "ms"
522
+ },
523
+ "type": "integer",
524
+ "minimum": 60000,
525
+ "maximum": 14400000
526
+ }
527
+ }
528
+ },
529
+ "screenshot": "docs/history.png",
530
+ "animated": false,
531
+ "urgent": true
532
+ }
533
+ ],
534
+ "sources": [
535
+ {
536
+ "type": "gpu/devices",
537
+ "name": {
538
+ "en": "GPUs",
539
+ "es": "GPU"
540
+ },
541
+ "description": {
542
+ "en": "Temperature, load, VRAM (and who holds it), power, fan and clocks per GPU, from this machine, another over ssh, or a Prometheus exporter.",
543
+ "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."
544
+ },
545
+ "polled": true,
546
+ "intervalMs": 5000,
547
+ "options": {
548
+ "default": {
549
+ "backend": "auto",
550
+ "ssh": "",
551
+ "url": "",
552
+ "token": "",
553
+ "label": "",
554
+ "processes": true,
555
+ "historyMs": 1800000
556
+ },
557
+ "x-ui": {},
558
+ "type": "object",
559
+ "properties": {
560
+ "backend": {
561
+ "title": "Back end",
562
+ "description": "auto tries the metrics URL (if set), nvidia-smi, rocm-smi / amd-smi and sysfs, in that order.",
563
+ "default": "auto",
564
+ "x-ui": {
565
+ "label": {
566
+ "en": "Back end",
567
+ "es": "Origen"
568
+ },
569
+ "help": {
570
+ "en": "auto tries the metrics URL (if set), nvidia-smi, rocm-smi / amd-smi and sysfs, in that order.",
571
+ "es": "auto prueba la URL de métricas (si hay), nvidia-smi, rocm-smi / amd-smi y sysfs, por ese orden."
572
+ },
573
+ "labels": {
574
+ "auto": {
575
+ "en": "Automatic",
576
+ "es": "Automático"
577
+ },
578
+ "nvidia": "NVIDIA (nvidia-smi)",
579
+ "amd": "AMD (rocm-smi, amd-smi, sysfs)",
580
+ "intel": {
581
+ "en": "Intel (sysfs, best effort)",
582
+ "es": "Intel (sysfs, lo que se pueda)"
583
+ },
584
+ "prometheus": "Prometheus (DCGM / nvidia_gpu_exporter)"
585
+ }
586
+ },
587
+ "type": "string",
588
+ "enum": [
589
+ "auto",
590
+ "nvidia",
591
+ "amd",
592
+ "intel",
593
+ "prometheus"
594
+ ]
595
+ },
596
+ "ssh": {
597
+ "title": "Read over ssh",
598
+ "description": "Runs nvidia-smi / rocm-smi on that host with ssh -o BatchMode=yes: needs key login. Empty = this machine.",
599
+ "default": "",
600
+ "x-ui": {
601
+ "label": {
602
+ "en": "Read over ssh",
603
+ "es": "Leer por ssh"
604
+ },
605
+ "help": {
606
+ "en": "Runs nvidia-smi / rocm-smi on that host with ssh -o BatchMode=yes: needs key login. Empty = this machine.",
607
+ "es": "Ejecuta nvidia-smi / rocm-smi en ese host con ssh -o BatchMode=yes: necesita acceso por clave. Vacío = esta máquina."
608
+ },
609
+ "placeholder": "user@gpubox"
610
+ },
611
+ "x-risk": "exec",
612
+ "type": "string"
613
+ },
614
+ "url": {
615
+ "title": "Metrics URL",
616
+ "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.",
617
+ "default": "",
618
+ "x-ui": {
619
+ "label": {
620
+ "en": "Metrics URL",
621
+ "es": "URL de métricas"
622
+ },
623
+ "help": {
624
+ "en": "DCGM exporter (port 9400) or nvidia_gpu_exporter (port 9835).",
625
+ "es": "DCGM exporter (puerto 9400) o nvidia_gpu_exporter (puerto 9835)."
626
+ },
627
+ "secret": true,
628
+ "placeholder": "http://gpubox:9400/metrics",
629
+ "format": "url"
630
+ },
631
+ "x-secret": true,
632
+ "x-risk": "network",
633
+ "type": "string"
634
+ },
635
+ "token": {
636
+ "title": "Metrics bearer token",
637
+ "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.",
638
+ "default": "",
639
+ "x-ui": {
640
+ "label": {
641
+ "en": "Metrics bearer token",
642
+ "es": "Token bearer de las métricas"
643
+ },
644
+ "help": {
645
+ "en": "Only if the metrics URL is behind auth.",
646
+ "es": "Solo si la URL de métricas pide autenticación."
647
+ },
648
+ "advanced": true,
649
+ "secret": true
650
+ },
651
+ "x-secret": true,
652
+ "type": "string"
653
+ },
654
+ "label": {
655
+ "title": "Host label",
656
+ "description": "Shown above the GPUs. Defaults to the ssh host.",
657
+ "default": "",
658
+ "x-ui": {
659
+ "label": {
660
+ "en": "Host label",
661
+ "es": "Nombre del host"
662
+ },
663
+ "help": {
664
+ "en": "Shown above the GPUs. Defaults to the ssh host.",
665
+ "es": "Se muestra encima de las GPU. Por defecto, el host de ssh."
666
+ },
667
+ "placeholder": "gpubox"
668
+ },
669
+ "type": "string"
670
+ },
671
+ "processes": {
672
+ "title": "Per-process VRAM",
673
+ "description": "One more nvidia-smi call per reading.",
674
+ "default": true,
675
+ "x-ui": {
676
+ "label": {
677
+ "en": "Per-process VRAM",
678
+ "es": "VRAM por proceso"
679
+ },
680
+ "help": {
681
+ "en": "One more nvidia-smi call per reading.",
682
+ "es": "Una llamada más a nvidia-smi por lectura."
683
+ }
684
+ },
685
+ "type": "boolean"
686
+ },
687
+ "historyMs": {
688
+ "title": "History kept",
689
+ "description": "How far back GPU history can look.",
690
+ "default": 1800000,
691
+ "x-ui": {
692
+ "label": {
693
+ "en": "History kept",
694
+ "es": "Historial guardado"
695
+ },
696
+ "help": {
697
+ "en": "How far back GPU history can look.",
698
+ "es": "Hasta dónde puede mirar atrás el historial de GPU."
699
+ },
700
+ "unit": "ms"
701
+ },
702
+ "type": "integer",
703
+ "minimum": 60000,
704
+ "maximum": 14400000
705
+ }
706
+ }
707
+ }
708
+ }
709
+ ],
710
+ "interludes": [],
711
+ "templates": []
712
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kiosko-plugin-gpu",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
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,14 @@
28
28
  },
29
29
  "kiosko": {
30
30
  "plugin": "./dist/index.js",
31
- "id": "gpu"
31
+ "id": "gpu",
32
+ "sdk": "^0.2.0",
33
+ "manifest": "./kiosko-manifest.json"
32
34
  },
33
35
  "files": [
34
36
  "dist",
37
+ "docs",
38
+ "kiosko-manifest.json",
35
39
  "README.md",
36
40
  "LICENSE"
37
41
  ],
@@ -44,9 +48,12 @@
44
48
  "check": "tsc -p tsconfig.json",
45
49
  "prepublishOnly": "npm run build"
46
50
  },
51
+ "peerDependencies": {
52
+ "@kiosko/sdk": "^0.2.0"
53
+ },
47
54
  "devDependencies": {
48
- "@kiosko/sdk": "^0.1.0",
49
- "@loksly/lcd-canvas-kit": "^0.1.0",
55
+ "@kiosko/sdk": "^0.2.1",
56
+ "@loksly/lcd-canvas-kit": "^0.2.0",
50
57
  "@napi-rs/canvas": "^1.0.10",
51
58
  "@types/node": "^24.0.0",
52
59
  "esbuild": "^0.25.0",