A comprehensive set of hands-on lab exercises for learning Prometheus Query Language (PromQL) with Node Exporter metrics.
This training consists of twelve hands-on labs organized into three difficulty levels, each with a checkpoint quiz:
- Lab 0: PromQL Fundamentals - Learn basic PromQL syntax and operators
- Lab 1: CPU Metrics Exploration - Discover and filter basic metrics
- Lab 2: CPU Usage Rates - Calculate and visualize usage over time
- 📝 Beginner Checkpoint Quiz
- Lab 3: Memory and Filesystem Usage - Track system resources
- Lab 4: Network, Load, and Advanced Aggregations - Analyze traffic and system load
- 📝 Intermediate Checkpoint Quiz
- Lab 5: Advanced CPU Anomaly Detection - Find unusual patterns
- Lab 6: Correlating Metrics & Dashboards - Connect multiple metrics
- Lab 7: Recording Rules and Alerting - Operationalize monitoring
- Lab 8: Label Manipulation & Offset - Master label_replace, label_join, and offset
- Lab 9: Subqueries, TopK & Absent - Use subqueries, topk/bottomk, and absent()
- Lab 10: Histograms and Quantiles - Work with histogram metrics, percentiles, and SLOs
- Lab 11: Join Queries & Vector Matching - Master PromQL joins, vector matching, and complex multi-metric operations
- 📝 Advanced Checkpoint Quiz
- Access to Prometheus with Node Exporter metrics (localhost:9100)
- Grafana instance connected to Prometheus
- Basic understanding of Linux system metrics
Each lab is designed to take approximately 30 minutes and includes:
- Clear learning objectives
- Step-by-step instructions
- Real-world scenario-based learning
- Practical challenges
- Hidden solutions
- Real-world Unix Node Exporter metrics
Start with the Beginner labs and progress through to Advanced for a complete learning experience.
You can automatically test all PromQL queries against your Prometheus server:
- Update the URL in
Tests/config.jsonwith your Prometheus endpoint - Run the python test script:
python Tests\test_queries.py - Check the results in
Tests\results.log