Skip to content

Instantly share code, notes, and snippets.

@momania
Last active February 22, 2018 13:44
Show Gist options
  • Save momania/f01d0577c345b316460d286a012ac28c to your computer and use it in GitHub Desktop.
Save momania/f01d0577c345b316460d286a012ac28c to your computer and use it in GitHub Desktop.
Setup of nvidia smi exporter for prometheus
[Unit]
Description=nvidia smi epxorter
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/nvidia-smi-exporter
[Install]
WantedBy=multi-user.target
https://medium.com/@patdhlk/how-to-install-go-1-9-1-on-ubuntu-16-04-ee64c073cd79
add to ~/.profile :
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/work
mkdir -p work/src
~/work/src$ git clone https://github.com/kristophjunge/docker-prometheus-nvidiasmi
go build -v -o bin/app src/app.go
sudo cp bin/app /usr/local/bin/nvidia-smi-exporter
add service file to /etc/systemd/system/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment