Skip to content

JefJrFigueiredo/tig-stack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Telegraf, InfluxDB, Grafana (TIG) Stack

Gain the ability to analyze and monitor telemetry data by deploying the TIG stack within minutes using Docker and Docker Compose.

⚡️ Getting Started

Clone the project

git clone https://github.com/jefjrfigueiredo/tig-stack.git

Navigate to the project directory

cd tig-stack

Run this command to create the .env file and generate a new admin token for InfluxDB:

[ ! -f .env ] && cp .env.example .env
var="DOCKER_INFLUXDB_INIT_ADMIN_TOKEN" \
&& new_token=$(openssl rand -hex 32) \
&& grep -q "^${var}=" .env \
&& sed -i "s/^${var}=.*/${var}=$new_token/" .env \
|| echo "${var}=$new_token" >> .env

(Optional) Change the environment variables define in .env that are used to setup and deploy the stack

├── influxdb/
│   ├── entrypoint.sh
├── telegraf/
│   ├── telegraf.conf
├── .env         <---
├── docker-compose.yml
└── ...

(Optional) Customize the telegraf.conf file which will be mounted to the container as a persistent volume

├── influxdb/
│   ├── entrypoint.sh
├── telegraf/
│   ├── telegraf.conf <---
├── .env
├── docker-compose.yml
└── ...

Start the services

docker compose up -d

Access the Grafana portal in http://localhost:3000 (or the GRAFANA_PORT you set in the .env file), authenticate with login: admin and password: admin , change the password, go to Dashboards > System metrics and see the metrics in real-time.

Docker Images Used (Official & Verified)

Telegraf / 1.34.4-alpine

InfluxDB / 2.7.12-alpine

Grafana-OSS / 12.2.0-17142428006

Contributing

Contributions are always welcome!

About

The Telegraf, InfluxDB, & Grafana stack (TIG) powered by Docker & Docker Compose.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 86.7%
  • FLUX 13.3%