Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wget https://dl.influxdata.com/telegraf/releases/telegraf_1.12.3-1_amd64.deb
- dpkg -i telegraf_1.12.3-1_amd64.deb
- rm telegraf_1.12.3-1_amd64.deb
- sed -i 's| urls = ["http://localhost:8086"]| urls = ["172.16.118.141:8086"]|g' /etc/telegraf/telegraf.conf
- sed -i 's| # password = "metricsmetricsmetricsmetrics"| password = "telegraf"|g' /etc/telegraf/telegraf.conf
- tee -a /etc/telegraf/telegraf.conf << END
- # Pulls statistics from nvidia GPUs attached to the host
- [[inputs.nvidia_smi]]
- ## Optional: path to nvidia-smi binary, defaults to $PATH via exec.LookPath
- # bin_path = "/usr/bin/nvidia-smi"
- ## Optional: timeout for GPU polling
- # timeout = "5s"
- END
- systemctl restart telegraf
- systemctl start telegraf
- systemctl enable telegraf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement