Influx TICK stack cheatsheet
Install TICK
Telegraf
wget https://dl.influxdata.com/telegraf/releases/telegraf-1.2.1.x86_64.rpm sudo yum localinstall telegraf-1.2.1.x86_64.rpm
InfluxDB
wget https://dl.influxdata.com/influxdb/releases/influxdb-1.2.2.x86_64.rpm sudo yum localinstall influxdb-1.2.2.x86_64.rpm
Chronograf
wget https://dl.influxdata.com/chronograf/releases/chronograf-1.3.0.x86_64.rpm sudo yum localinstall chronograf-1.3.0.x86_64.rpm
Kapacitor
wget https://dl.influxdata.com/kapacitor/releases/kapacitor-1.2.0.x86_64.rpm sudo yum localinstall kapacitor-1.2.0.x86_64.rpm
InfluxDB
install InfluxDB - time series DB
start Influxdb service
service influxdb start
verify Influxdb is running
curl "http://localhost:8086/query?q=show+databases"
Vim /etc/influxdb/influxdb.conf
edit [admin] stanza
enabled = true
bind-address = ":8083"
restart influxb, admin GUI should be available http://<ip addr>:8083
create new user 'admin', with pw
Telegraf (metrics agent)
Install Telegraf - metrics gathering agent. Uses plugins to collect data from different endpoints
start telegraf service
service telegraf start
test Telegraf
curl "http://localhost:8086/query?q=select+*+from+telegraf..cpu"
start "influx" cmd line
> show databases
> use telegraf
> show measurements
gets JSON of measurements
Install Kapacitor - data processing and alerts
Kapacitor is a data processing engine. It lets you plug in your own custom logic to process alerts with dynamic thresholds, match metrics for patterns, or identify statistical anomalies. We will use Kapacitor to read data from InfluxDB, generate alerts, and send those alerts to a specified email address.
start kapacitor service
service kapacitor start
verify kapacitor is running
Run kapacitor list tasks
should get
ID Type Status Executing Databases and Retention Policies
Install Chronograf - graphing and visual presenter
Chronograf is a graphing and visualization application that provides tools to visualize monitoring data and create alerting and automation rules. It includes support for templates, and has a library of intelligent, pre-configured dashboards for common data sets. We'll configure it to connect to the other components we've installed.
start chronograf service
chronograf &
connect to cronograf via port 8888
http://localhost:8888
login to cronograf using Influx creds
Add Kapacitor to Cronograf, configure kapacitor monitoring