This repository contains a Docker Compose setup for creating containers for InfluxDB, Telegraf, and Grafana, providing a comprehensive monitoring solution.
git clone https://github.com/jersonmartinez/docker-compose-influxdb-telegraf-grafana.git
cd docker-compose-influxdb-telegraf-grafana
docker-compose up -d
-
Clone the Repository:
git clone https://github.com/jersonmartinez/docker-compose-influxdb-telegraf-grafana.git cd docker-compose-influxdb-telegraf-grafana
-
Start the Services:
docker-compose up -d
-
Verify the Services:
docker-compose ps
-
Access Grafana:
- Open your browser and navigate to
http://localhost:3000
- Default credentials: username and password are both
admin
- Open your browser and navigate to
- Telegraf configuration files are located in the
telegraf
directory. - After modifying the configuration files, restart the Telegraf container:
docker-compose restart telegraf
- Open Grafana and add InfluxDB as a data source.
- Create dashboards and panels to visualize the metrics collected by Telegraf.
We provide detailed guides for configuring Telegraf in various environments:
- Telegraf on Ubuntu
- Telegraf on Windows Subsystem for Linux (WSL) - Debian
- Telegraf on Windows
- Telegraf in Docker
For a comprehensive explanation of Telegraf configuration across different platforms, refer to our Telegraf Configuration Guide.
-
InfluxDB: A time-series database designed for high write and query loads, used to store metrics collected by Telegraf.
-
Telegraf: An agent for collecting, processing, aggregating, and writing metrics. It gathers data from the host and Docker containers, sending it to InfluxDB.
-
Grafana: A web-based interface for visualizing metrics stored in InfluxDB, allowing creation of dashboards and panels for monitoring.
-
Nginx: A web server providing static content serving and request proxying capabilities.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.