This repository contains the necessary files and instructions that will used for NAF (network automation forum) 2024 workshop on collecting metrics from network devices using the Telegraf, Prometheus, and Grafana (TPG) stack.
Learn how to collect, store, and visualize network metrics using:
- Telegraf: Data collection agent
- Prometheus: Time series database and monitoring system
- Grafana: Visualization and analytics platform
We use ContainerLab to simulate the network environment.
# Deploy the network topology
sudo containerlab deploy -t clab.yaml
Deploy the monitoring stack using Docker Compose:
# Start the TPG stack
docker compose -f docker-compose-sample.yaml up
To access the various UIs, configure the following ports in VS Code's ports section:
Service | Port | Description |
---|---|---|
Prometheus | 9090 | Metrics storage and querying |
Alert Manager | 9093 | Alerting interface |
Grafana | 3000 | Visualization dashboard |