Skip to content

EnzoMartin/gpu-stats-reporter

Repository files navigation

GPU Stats Reporter

Polls GPU information and reports it to Datadog.

Each GPU on the machine is reported separately, though not all GPUs support reporting all stats through the exposed APIs.

Only supports nVidia hardware though feel free to make a pull-request with support for other GPU manufacturers.

Example

Dashboard example

Install

  • Download and install the latest NodeJS
  • Install the DataDog agent
  • Clone the repo
  • Ensure nvidia-smi, usually located under C:\Program Files\NVIDIA Corporation\NVSMI, is available in your PATH
  • Run npm install from the repo base directory

Configuration

Variable Default Description
POLL_INTERVAL 5000 Polling interval in ms
STATSD_HOST localhost StatsD/DataDog agent host
STATSD_PORT 8125 StatsD port
STATSD_PREFIX gpu. Metric name prefix
NVIDIA_TIMEOUT 10000 nvidia-smi execution timeout in ms

Usage

npm start

Set environment variables before starting to override defaults:

STATSD_HOST=my-datadog-host npm start

License

See license file

About

NodeJS service that reports GPU stats

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors