#!/bin/bash aptitude install apt-transport-https echo 'deb https://repos.influxdata.com/debian stretch stable' >/etc/apt/sources.list.d/influx.list echo 'deb https://packages.grafana.com/oss/deb stable main' >/etc/apt/sources.list.d/grafana.list wget -O- https://repos.influxdata.com/influxdb.key | apt-key add - wget -O- https://packages.grafana.com/gpg.key | apt-key add - aptitude update aptitude install telegraf influxdb grafana sed -i 's/# database = "telegraf"/database = "telegraf"/' /etc/telegraf/telegraf.conf /etc/init.d/influxdb start /etc/init.d/telegraf restart influx -execute 'show databases' /etc/init.d/grafana-server start