Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.44 KB

File metadata and controls

36 lines (25 loc) · 1.44 KB

Learning TIG stack on different technologies

Monitoring stack:

  • telegraf
  • grafana
  • influxdb
  • influxdb_v2

Stack to be monitored:

  • mongo
  • nginx
  • phpfpm
  • elasticsearch
  • nodejs + pm2

ℹ️ How to make telegraf with influxdb_v2

For learning purpouse created monitoring panels for pm2 using flux which is supported only by influxdb_v2

So in order to make telegraf work with inflxudb_v2 you have to generate token for telegraf in influxdb_v2 admin panel and create bucket named 'telegraf', then insert token in telegraf/env.telegraf

ℹ️ How to make grafana work with influxdb_v2

In order to make grafana work with influxdb_v2 you have to go to datasources and configure token there also, you can use admin's for learning purpose

ℹ️ Importing already created dashboard for all this stuff

Import on grafana admin panel dashboard and just paste whole grafana/dashboard.json

🤢 "Fixing" nginx strange behvior

Nginx shoulnd't work untill you change nginx ip address in telegraf/telegraf.conf, I specified ip of my local network cause when accessing it via docker network nginx responses with internal server error ¯\_(ツ)_/¯.

🌐 Reference repositories and links

Laradock

Docker-influxdb-grafana

PM2 + grafana + influxdb