mirror of
https://github.com/jambonz/jambonz-infrastructure.git
synced 2026-01-25 02:08:27 +00:00
12 lines
394 B
Bash
12 lines
394 B
Bash
#!/bin/bash
|
|
echo installing telegraf..
|
|
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
|
|
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 -y telegraf
|
|
|
|
sudo cp /tmp/telegraf.conf /etc/telegraf/telegraf.conf
|
|
|
|
sudo systemctl enable telegraf
|
|
sudo systemctl start telegraf
|