Need help with nvidia_gpu_prometheus_exporter?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

159 Stars 65 Forks Apache License 2.0 15 Commits 10 Opened issues


NVIDIA GPU Prometheus Exporter

Services available


Need anything else?

Contributors list

# 69,200
14 commits

NVIDIA GPU Prometheus Exporter

This is a Prometheus Exporter for exporting NVIDIA GPU metrics. It uses the Go bindings for NVIDIA Management Library (NVML) which is a C-based API that can be used for monitoring NVIDIA GPU devices. Unlike some other similar exporters, it does not call the



The repository includes

, so there are no special requirements from the build environment.
go get
should be able to build the exporter binary.
go get


The exporter requires the following: - access to NVML library (
). - access to the GPU devices.

To make sure that the exporter can access the NVML libraries, either add them to the search path for shared libraries. Or set

to point to their location.

By default the metrics are exposed on port

. This can be updated using the

Running inside a container

There's a docker image available on Docker Hub at mindprince/nvidiagpuprometheus_exporter

If you are running the exporter inside a container, you will need to do the following to give the container access to NVML library:

--volume :

And you will need to do one of the following to give it access to the GPU devices: - Run with

- If you are on docker v17.04.0-ce or above, run with
--device-cgroup-rule 'c 195:* mrw'
- Run with
--device /dev/nvidiactl:/dev/nvidiactl /dev/nvidia0:/dev/nvidia0 /dev/nvidia1:/dev/nvidia1 

If you don't want to do the above, you can run it using nvidia-docker.

Running using nvidia-docker

nvidia-docker run -p 9445:9445 -ti mindprince/nvidia_gpu_prometheus_exporter:0.1

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.