Last active
July 10, 2020 04:44
-
-
Save gbrian/4b3054c86b01e52fb814f4d04b0eea9c to your computer and use it in GitHub Desktop.
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
# Before adding Influx repository, run this so that apt will be able to read the repository. | |
sudo apt-get update && sudo apt-get install apt-transport-https | |
# Add the InfluxData key | |
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - | |
source /etc/os-release | |
test $VERSION_ID = "7" && echo "deb https://repos.influxdata.com/debian wheezy stable" | sudo tee /etc/apt/sources.list.d/influxdb.list | |
test $VERSION_ID = "8" && echo "deb https://repos.influxdata.com/debian jessie stable" | sudo tee /etc/apt/sources.list.d/influxdb.list | |
test $VERSION_ID = "9" && echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list | |
sudo apt-get update | |
sudo apt-get install telegraf | |
sudo systemctl start telegraf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment