Advertisement
Guest User

Untitled

a guest
Feb 14th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.74 KB | None | 0 0
  1. wget https://dl.influxdata.com/telegraf/releases/telegraf_1.12.3-1_amd64.deb
  2. dpkg -i telegraf_1.12.3-1_amd64.deb
  3. rm telegraf_1.12.3-1_amd64.deb
  4. sed -i 's|  urls = ["http://localhost:8086"]|  urls = ["172.16.118.141:8086"]|g' /etc/telegraf/telegraf.conf
  5. sed -i 's|  # password = "metricsmetricsmetricsmetrics"|  password = "telegraf"|g' /etc/telegraf/telegraf.conf
  6. tee -a /etc/telegraf/telegraf.conf << END
  7. # Pulls statistics from nvidia GPUs attached to the host
  8. [[inputs.nvidia_smi]]
  9.   ## Optional: path to nvidia-smi binary, defaults to $PATH via exec.LookPath
  10.   # bin_path = "/usr/bin/nvidia-smi"
  11.  
  12.   ## Optional: timeout for GPU polling
  13.   # timeout = "5s"
  14. END
  15. systemctl restart telegraf
  16. systemctl start telegraf
  17. systemctl enable telegraf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement