May 20May 20 SummaryA Prometheus exporter for NVIDIA GPU metrics via nvidia-smi. Compatible with all GPU architectures (Turing, Ampere, Ada Lovelace, Blackwell) and all driver versions, including driver 595+ which deprecated several fields across all architectures. This is also available as a docker container if that's more your speed.Why does it exist?The original exporter (and its forks) fail on driver 595+. Starting with driver 595, NVIDIA changed several nvidia-smi -q -x fields from N/A to the string "Requested functionality has been deprecated" — on all GPU architectures, not just Blackwell. The original filterNumber() function strips non-numeric characters from this string, producing an empty string, which is then emitted as a Prometheus metric value — invalid text exposition format that causes the entire scrape to fail silently, dropping all metrics for that interval.This rewrite fixes that at the structural level: every value passes through a safe filter that always returns a valid numeric string or "0", and writeMetric refuses to emit any line with an empty value.PrerequisitesInstall the Nvidia-Driver plugin from Community Applications first. This plugin installs nvidia-smi at /usr/bin/nvidia-smi on the Unraid host.The plugin will abort installation with a clear error message if /usr/bin/nvidia-smi is not found.Install via Community ApplicationsSearch for "Nvidia-SMI Exporter" in the Community Applications store, or add the plugin URL directly in the Unraid Plugins tab:https://github.com/ccmpbll/nvidia-smi-exporter/raw/main/unraid/nvidia-smi-exporter.plgConfigurationAfter installation, navigate to Settings → Nvidia-SMI Exporter to:Start / stop / restart the exporterConfigure the listen port (default: 9202)View current GPU informationGrafana DashboardA pre-built Grafana dashboard is available here: https://github.com/ccmpbll/nvidia-smi-exporter/blob/main/grafana/dashboard.jsonGitHub RepoMore information about this project and the metrics collected can be found here: https://github.com/ccmpbll/nvidia-smi-exporterCreditsThis project is derived from three MIT-licensed upstream projects:kristophjunge/docker-prometheus-nvidiasmi — original exportere7d/docker-prometheus-nvidiasmi — fork adding gpu_power_readings supportich777/unraid-prometheus_nvidia_smi_exporter — Unraid plugin packagingFeedbackPlease feel free to give constructive feedback. I'm very open to suggestions or recommendations. Edited May 20May 20 by ccmpbll Formatting
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.