mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-04 11:07:02 +09:00
Introduce serverkit-gpu extension: backend plugin with GPU API and service (nvidia-smi based) providing per-GPU metrics and best-effort container resolution for GPU processes. Files added: backend/app/plugins/serverkit-gpu/{__init__.py,gpu.py,gpu_service.py,plugin.json}. Also update several frontend plugin.json files (including serverkit-gpu) to match manifest formatting (trailing newline adjustments). The GPU service degrades gracefully when nvidia-smi or Docker info is unavailable.
47 lines
1.3 KiB
JSON
47 lines
1.3 KiB
JSON
{
|
|
"name": "serverkit-gpu",
|
|
"display_name": "GPU Monitor",
|
|
"version": "1.0.0",
|
|
"description": "Live NVIDIA GPU metrics covering utilization, memory, temperature, power and fan, for servers with a GPU.",
|
|
"author": "ServerKit",
|
|
"license": "MIT",
|
|
"category": "monitoring",
|
|
"homepage": "https://github.com/jhd3197/ServerKit",
|
|
"permissions": [
|
|
"shell"
|
|
],
|
|
"min_panel_version": "1.7.0",
|
|
"sdk_version": "^1.0.0",
|
|
"entry_point": "gpu:gpu_bp",
|
|
"url_prefix": "/api/v1/gpu",
|
|
"icon": "<rect x=\"3\" y=\"6\" width=\"18\" height=\"12\" rx=\"2\"/><path d=\"M7 6v12\"/><circle cx=\"13\" cy=\"12\" r=\"2.5\"/><path d=\"M17 6v12\"/>",
|
|
"contributions": {
|
|
"nav": [
|
|
{
|
|
"id": "gpu",
|
|
"label": "GPU Monitor",
|
|
"route": "/gpu",
|
|
"category": "system",
|
|
"requiresCondition": "gpuAvailable",
|
|
"icon": "<rect x=\"3\" y=\"6\" width=\"18\" height=\"12\" rx=\"2\"/><path d=\"M7 6v12\"/><circle cx=\"13\" cy=\"12\" r=\"2.5\"/><path d=\"M17 6v12\"/>"
|
|
}
|
|
],
|
|
"routes": [
|
|
{
|
|
"path": "gpu",
|
|
"component": "GpuMonitorPage"
|
|
}
|
|
],
|
|
"page_titles": {
|
|
"/gpu": "GPU Monitor"
|
|
},
|
|
"command_palette": [
|
|
{
|
|
"label": "GPU Monitor",
|
|
"path": "/gpu",
|
|
"category": "Pages",
|
|
"keywords": "nvidia cuda metrics gpu"
|
|
}
|
|
]
|
|
}
|
|
} |