Wednesday, July 29, 2020

How To install TIG stack On Ubuntu 20.04 LTS

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

TIG stack is a group of powerful open-source monitoring tools, Telegraf, InfluxDB and Grafana where;

Telegraf is an open-source server agent for collecting and sending metrics and events from databases, systems, and IoT sensors.

https://www.influxdata.com/time-series-platform/telegraf/


InfluxDB is an open-source time series database and provides datastore for metrics, events, and real-time analytics.

https://www.influxdata.com/


Grafana is a data visualization and monitoring tool and supports time series datastores such as Graphite, InfluxDB, Prometheus, Elasticsearch.

https://grafana.com/docs/

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Ubuntu 20.04 LTS                     Hostname - www.example.com     - ip Address - 192.168.1.40 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

apt update ; apt install -y build-essential net-tools curl git software-properties-common


InfluxData Downloads page. - https://portal.influxdata.com/downloads/

wget https://dl.influxdata.com/telegraf/releases/telegraf_1.14.3-1_amd64.deb

dpkg -i telegraf_1.14.3-1_amd64.deb

systemctl enable --now telegraf


InfluxData Downloads page -https://portal.influxdata.com/downloads/

wget https://dl.influxdata.com/influxdb/releases/influxdb_1.8.0_amd64.deb

dpkg -i influxdb_1.8.0_amd64.deb

systemctl enable --now influxdb ; systemctl status influxdb


apt install -y adduser libfontconfig1

Grafana downloads page- https://grafana.com/grafana/download

wget https://dl.grafana.com/oss/release/grafana_7.0.1_amd64.deb

dpkg -i grafana_7.0.1_amd64.deb

systemctl daemon-reload ; systemctl enable --now grafana-server ; systemctl status grafana-server


influx

create database telegraf

create user telegraf with password 'Strongpassword'

grant all on telegraf to telegraf


mv /etc/telegraf/telegraf.conf{,.old}

telegraf config -input-filter cpu:mem:swap:system:processes:disk -output-filter influxdb > /etc/telegraf/telegraf.conf

sudo gedit  /etc/telegraf/telegraf.conf &>/dev/null


# Configuration for sending metrics to InfluxDB

[[outputs.influxdb]]

urls = ["http://127.0.0.1:8086"]

database = "telegraf"

username = "telegraf"

password = "Strongpassword"

systemctl restart telegraf ; systemctl status telegraf


http://www.yourdomain.com:3000

User - admin Password - admin


Name - influxdb | URL: http://localhost:8086/ | Database: telegraf | User: telegraf | Password: 'Strongpassword'

https://grafana.com/dashboards/5955

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment