Table of Contents

InfluxDB

InfluxDB is cool, but complicated. I need to keep track of stuff.

Install telegraf on a Pi

https://docs.influxdata.com/telegraf/v1.10/introduction/installation/

wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
/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 apt-transport-https telegraf

config for crony

[agent]
  interval = "10s"
  round_interval = true
  metric_batch_size = 1000
  metric_buffer_limit = 10000
  collection_jitter = "0s"
flush_interval = "10s"
  flush_jitter = "0s"
  precision = ""
debug = false
  quiet = false
  logfile = ""
hostname = ""
  omit_hostname = false
[[outputs.influxdb_v2]]	
  urls = ["http://m700:8086"]
  token = "IEc15hF3XaxlYv_IuhWsBaUIx1XiSONcCvCjHEcwmVS0X8zdo7msjKea3Vqo0HTBcBnXVN6dRikgSsI7I66n1w=="
  organization = "syninf"
  bucket = "telegraf"
[[inputs.chrony]]