Skip to content

Instantly share code, notes, and snippets.

@GarimaDamani
Created December 11, 2019 05:01
Show Gist options
  • Save GarimaDamani/64a3bb35adfe755c95ad5775c23c7cd6 to your computer and use it in GitHub Desktop.
Save GarimaDamani/64a3bb35adfe755c95ad5775c23c7cd6 to your computer and use it in GitHub Desktop.
Setting up Telegraf in ubuntu 16.04 and 18.04
#!/bin/bash
cat <<EOF | sudo tee /etc/apt/sources.list.d/influxdata.list
deb https://repos.influxdata.com/ubuntu bionic stable
EOF
sudo curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install telegraf
sudo systemctl enable --now telegraf
sudo systemctl is-enabled telegraf
systemctl status telegraf
# Source : https://computingforgeeks.com/how-to-install-and-configure-telegraf-on-ubuntu-18-04-debian-9/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment