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.
Note: clab.yaml file and device configs were taken from one of the sr-labs repository https://github.com/srl-labs/srl-telemetry-lab
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.yamlDeploy the monitoring stack using Docker Compose:
# Start the TPG stack
docker compose -f docker-compose-sample.yaml upTo 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 |