Skip to content

Instantly share code, notes, and snippets.

@DustinAlandzes
Created March 29, 2017 20:13
Show Gist options
  • Save DustinAlandzes/fe0dcd863c9097eb13ca75855b5904eb to your computer and use it in GitHub Desktop.
Save DustinAlandzes/fe0dcd863c9097eb13ca75855b5904eb to your computer and use it in GitHub Desktop.
#!/bin/bash
#download telegraf, decompress, merge with root
wget https://dl.influxdata.com/telegraf/releases/telegraf-1.2.1_linux_armhf.tar.gz
tar xvfz telegraf-1.2.1_linux_armhf.tar.gz
rsync -av telegraf/* /
#install supervisord, add telegraf.conf from another gist, reread, update
apt-get install supervisor
wget https://gist.githubusercontent.com/f00-/969f73db5e0bff8202d61c8df2fb8475/raw/b373ec187fec469e17d2d448ac603e4d6a7e5494/telegraf.conf
mv telegraf.conf /etc/supervisor/conf.d/telegraf.conf
supervisorctl reread
supervisorctl update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment