Server monitoring with TIG
Go to file
2023-02-06 14:50:46 +01:00
docs add logo tig 2023-02-06 14:50:46 +01:00
grafana ajout docker plugin for telegraf 2022-12-30 09:39:03 +01:00
influxdb/config credentials between telegraf and influxdb OK 2022-12-30 10:55:23 +01:00
telegraf Mise à jour de 'telegraf/telegraf.conf' 2022-12-30 11:20:46 +01:00
.env add .env, c'est mieux 2022-12-30 10:58:19 +01:00
docker-compose-telegraf-agent.yml maj light version 2023-02-06 14:42:37 +01:00
docker-compose.yml maj light version 2023-02-06 14:42:37 +01:00
get-docker-id.sh ajout docker plugin for telegraf 2022-12-30 09:36:18 +01:00
README.md add logo tig 2023-02-06 14:50:46 +01:00

Telegraf-influxDB-grafana

LOGO

Config

  • Grafana: grafana/provisioning/datasources/influxdb.yml (password for influxdb)
  • InfluxDB: influxdb/config/influxdb.conf
  • Telegraf: telegraf/telegraf.conf (line 63 + 74 & 75)

Usage

Main monitor

  • get docker UID for telegraf (agent only)
./get-docker-id.sh
  • credentials
nano .env
  • start stack
docker-compose up -d
  • see logs
docker-compose logs -f

Agent

  • config agent
nano .env
mv docker-compose-telegraf-agent.yml docker-compose.yml
  • start agent
docker-compose up -d

Dashboards

Services and Ports exemple

Grafana

Telegraf

  • Port: 8125 UDP (StatsD input)

InfluxDB

  • Port: 8086 (HTTP API)
  • User: admin
  • Password: admin
  • Database: influx

To do:

  • script install
  • Prometheus + Alertmanager