Last active
February 22, 2018 13:44
-
-
Save momania/f01d0577c345b316460d286a012ac28c to your computer and use it in GitHub Desktop.
Setup of nvidia smi exporter for prometheus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=nvidia smi epxorter | |
After=network.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/local/bin/nvidia-smi-exporter | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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