https://github.com/jersonmartinez/docker-compose-influxdb-telegraf-grafana
This is a docker compose to create containers about InfluxDB, Telegraf and Grafana.
https://github.com/jersonmartinez/docker-compose-influxdb-telegraf-grafana
devops docker docker-compose gnu-linux grafana influxdata influxdb monitoring telegraf windows wsl-debian wsl2
Last synced: 17 days ago
JSON representation
This is a docker compose to create containers about InfluxDB, Telegraf and Grafana.
- Host: GitHub
- URL: https://github.com/jersonmartinez/docker-compose-influxdb-telegraf-grafana
- Owner: jersonmartinez
- Created: 2022-02-03T15:48:57.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-21T02:42:20.000Z (8 months ago)
- Last Synced: 2024-11-05T16:45:53.195Z (6 months ago)
- Topics: devops, docker, docker-compose, gnu-linux, grafana, influxdata, influxdb, monitoring, telegraf, windows, wsl-debian, wsl2
- Homepage: https://www.youtube.com/@devopsea
- Size: 140 KB
- Stars: 33
- Watchers: 1
- Forks: 23
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Monitoring with Docker Compose using InfluxDB, Telegraf and Grafana
This repository contains a Docker Compose setup for creating containers for InfluxDB, Telegraf, and Grafana, providing a comprehensive monitoring solution.
## Infrastructure Model

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