Introduction to the TIG Stack

The TIG Stack is an acronym for a platform of open-source tools built to make collection, storage, graphing, and alerting on time series data easy.

A time series is any set of values with a timestamp where time is a significant component of the data. The classic real-world example of a time series is stock currency exchange price data.

https://i.imgur.com/TzgFn2G.png

To handle the flow of data related to a time series, some widely used tools are:

https://i.imgur.com/aANRGpe.png

In this Lab we will use the following images:

Getting started with InfluxDB

InfluxDB is a time-series database compatible with SQL, so we can setup a database and a user easily. In a terminal execute the following:

docker run -d -p 8086:8086 --name=influxdb  influxdb:1.8

This will keep InfluxDB executing in the background (i.e., detached: -d). Now we connect to the CLI:

docker exec -it influxdb influx

The first step consists in creating a database called “telegraf”:

> create database telegraf
> show databases
name: databases
name
----
_internal
telegraf
>