GNMON Kosmetik: GPU-Label via PCI-ID-Fallback + Geist-Favicon (Dashboard v0.3.3)
- amdgpu-textfile-collector.py: product_name existiert im sysfs der RX 6900 XT
nicht (gpu="unknown"); Fallback auf PCI-Device-ID (0x73bf -> AMD Radeon RX
6900 XT (Navi 21)). Live verifiziert: gn_gpu_up{card="0|1",gpu="AMD Radeon
RX 6900 XT (Navi 21)"} 1 in VictoriaMetrics.
- Dashboard v0.3.3: favicon.png (32x32) + apple-touch-icon.png (180x180) aus
dem Betreiber-Maskottchen (Dokumente/ghost.png) gerendert; via NPM als
image/png 200 verifiziert (2729 B favicon). App.razor referenziert beide.
- Server-Image-Store: v0.3.3 + Rollback v0.2.0/v0.1.0; monitor.yml gesamt
ok=84 changed=0.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -224,9 +224,10 @@ Verifikation von `gn-dashboard` (984, vorbestehend).
|
||||
fielen die Bugfixes a)/c) als Changes an und wurden neu gestartet).
|
||||
- **Aufgeräumt:** Image-Tars in `/var/tmp` gelöscht; `gn-monitor`-Images
|
||||
sauber (nur die vier Tag-Refs, keine Transport-Reste).
|
||||
- **Bekannte Kosmetik:** GPU-Label `gpu="unknown"` auf dem Server
|
||||
(`product_name` im sysfs dort nicht lesbar); möglicher Fallback über
|
||||
PCI-Vendor/Device-ID bei Bedarf.
|
||||
- **GPU-Label (gefixt 09.11.2026):** `product_name` existiert im sysfs des
|
||||
Servers nicht (`gpu="unknown"`); der Collector fällt jetzt auf die PCI-
|
||||
Device-ID zurück (`0x73bf` → `AMD Radeon RX 6900 XT (Navi 21)`). Live in
|
||||
VictoriaMetrics bestätigt: `gn_gpu_up{card="0|1",gpu="AMD Radeon RX 6900 XT (Navi 21)"} 1`.
|
||||
|
||||
### M5: Dashboard-Rollout + AI-Verfügbarkeitsregel (implementiert 06.11.2026)
|
||||
|
||||
@@ -282,7 +283,8 @@ danach 200; Abfragen und Labels fehlerfrei. Dashboard `/` HTTP 200.
|
||||
vmalert `/-/healthy` 200, Regelgruppe `gnmon-ai` (`GnAiEnvironmentDown`)
|
||||
geladen, Alertmanager `/api/v2/alerts` leer. VictoriaMetrics liefert
|
||||
`gn_ai_active_env{env="production"} 1` (Production-Recovery nach Boot, siehe
|
||||
GNAI-008 14.6) und `gn_gpu_*` für beide Karten (`gpu="unknown"` bestätigt).
|
||||
GNAI-008 14.6) und `gn_gpu_*` für beide Karten (damals noch `gpu="unknown"`,
|
||||
seit 09.11.2026 via PCI-ID-Fallback korrekt gelabelt).
|
||||
Konten per `getent` bestätigt: `gn-monitor` 986, `gn-dashboard` 984,
|
||||
`gn-download` 983. **Gegenbefund:** `gnai-ai-backup.service` Exit 21 beim
|
||||
Boot (NFS-Mount noch nicht verfügbar) — dokumentiert in GNAI-008 14.6.
|
||||
@@ -387,6 +389,9 @@ Realm `Ghost.net` (Vaultwarden-Realm, Issuer
|
||||
Rollen → saubere 403-Seite `/access-denied`; `/logout` → Keycloak-Logout
|
||||
ohne id_token_hint-Fehler; Gesamtsuite `monitor.yml` ok=84 changed=0.
|
||||
Journal-Evidenz: `[gnmon-auth] realm_roles=gnai-dashboard-user,...,gnai-dashboard-admin`.
|
||||
- **Kosmetik (09.11.2026, v0.3.3):** Favicon ist das Ghostnet-Geist-Maskottchen
|
||||
(`wwwroot/favicon.png` 32×32 + `apple-touch-icon.png` 180×180, aus dem
|
||||
Betreiber-Logo gerendert), via NPM als `image/png` 200 verifiziert.
|
||||
|
||||
## Noch offen (Rest)
|
||||
|
||||
|
||||
@@ -86,4 +86,4 @@ gnmon_dashboard_http_listen: "10.0.0.90:8080"
|
||||
# Transportiertes Image (Workstation-Build, podman save/load am 09.11.2026).
|
||||
# v0.2.1: konfigurierbare Auth:AllowedRoles; v0.2.2 (ID 518f88349c6c): ClientId
|
||||
# an den Keycloak-Client "gnai-dashboard" angepasst. Build aus images/dashboard/Containerfile.
|
||||
gnmon_dashboard_image_ref: docker.io/ghostnet/dashboard:v0.3.2
|
||||
gnmon_dashboard_image_ref: docker.io/ghostnet/dashboard:v0.3.3
|
||||
|
||||
@@ -18,7 +18,7 @@ gnmon_dashboard_quadlet_dir: >-
|
||||
# adds the configuration-driven OIDC layer with configurable Auth:AllowedRoles
|
||||
# (M6, GNMON-000). The image is transported (podman save/load), so the
|
||||
# inventory pins the tag ref either way.
|
||||
gnmon_dashboard_image_ref: docker.io/ghostnet/dashboard:v0.3.2
|
||||
gnmon_dashboard_image_ref: docker.io/ghostnet/dashboard:v0.3.3
|
||||
|
||||
# Host loopback only (GNMON-001 section 7); NPM ingress follows in M6.
|
||||
gnmon_dashboard_http_listen: "127.0.0.1:8080"
|
||||
|
||||
@@ -36,6 +36,28 @@ from pathlib import Path
|
||||
|
||||
AMD_VENDOR_ID = "0x1002"
|
||||
|
||||
# PCI device-ID fallback for the gpu label: on the discrete RX 6900 XT hosts
|
||||
# sysfs has no product_name file (Befund 09.11.2026: gpu="unknown"), so map
|
||||
# the well-known Navi-21 IDs explicitly. Unknown IDs fall back to the raw hex.
|
||||
AMD_PCI_DEVICE_NAMES = {
|
||||
"0x73bf": "AMD Radeon RX 6900 XT (Navi 21)",
|
||||
"0x73df": "AMD Radeon RX 6950 XT (Navi 21)",
|
||||
"0x73ff": "AMD Radeon RX 6900 XTX (Navi 21)",
|
||||
}
|
||||
|
||||
|
||||
def gpu_label(device_dir: Path) -> str:
|
||||
"""Product name from sysfs, falling back to the PCI device ID."""
|
||||
name = _read_text(device_dir / "product_name")
|
||||
if name:
|
||||
return name
|
||||
device_id = _read_text(device_dir / "device")
|
||||
if device_id:
|
||||
return AMD_PCI_DEVICE_NAMES.get(
|
||||
device_id.lower(), f"AMD PCI GPU {device_id}"
|
||||
)
|
||||
return "unknown"
|
||||
|
||||
|
||||
def _read_int(path: Path) -> int | None:
|
||||
try:
|
||||
@@ -96,7 +118,7 @@ def collect(drm_root: Path) -> list[str]:
|
||||
if vendor != AMD_VENDOR_ID:
|
||||
continue
|
||||
card = device_link.name.removeprefix("card")
|
||||
gpu = _read_text(device_dir / "product_name") or "unknown"
|
||||
gpu = gpu_label(device_dir)
|
||||
|
||||
def emit(metric: str, help_text: str, metric_type: str, value, **labels) -> None:
|
||||
declare(metric, help_text, metric_type)
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
<link rel="stylesheet" href="@Assets["Ghostnet.Dashboard.styles.css"]" />
|
||||
<ImportMap />
|
||||
<link rel="icon" type="image/png" href="favicon.png" />
|
||||
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
|
||||
<script src="@Assets["js/gnmon-utils.js"]"></script>
|
||||
<HeadOutlet />
|
||||
</head>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 2.7 KiB |
Reference in New Issue
Block a user