PromQL Tutorial: A COMPLETE Guide to Prometheus Queries

Rayan Labs November 13, 2024
Video Thumbnail
Rayan Labs Logo

Rayan Labs

@rayanlabs

About

Welcome to Rayan Labs, a channel with projects that actually work. The labs in this channel are comprehensive: zero steps skipped, with clear explanations of both how and why.

Video Description

PromQL Tutorial: Master Prometheus Query Language with Examples 🚀 Chapters: 0:00 - PromQL Tutorial Introduction 0:22 - Getting Started (Prometheus Setup) 0:48 - Prometheus Metric Types: Counter, Gauge, Histogram 4:38 - Prometheus Query 5:33 - Filtering and Label Selection 9:50 - Prometheus Time Series Data 10:46 - Instant Vector and Range Vector 12:00 - PromQL Functions 12:40 - PromQL Function: rate 14:43 - Prometheus rate vs irate 17:10 - Prometheus CPU Monitoring 17:56 - Aggregation Operators 21:00 - Aggregation Over Time 24:15 - Prometheus Histogram Query: histogram_quantile 28:36 - Prometheus Averages and Totals 31:55 - PromQL Function: increase 34:40 - Label Manipulation: label_replace 37:10 - Label Manipulation: label_join 38:10 - CPU and Memory Usage in Prometheus 39:01 - Data Trends and deriv 41:20 - PromQL Functions: topk and bottomk 42:38 - Final Remarks This comprehensive PromQL tutorial is perfect for beginners and experienced users. We'll start with basic Prometheus queries and progress towards understanding time series data, different metric types, and essential PromQL functions. By the end, you'll be writing feel comfortable writing your own promQL queries. ▶️ Prometheus Setup with Docker Compose: https://youtu.be/kAVBNgsrtik 🚀 Become a Cloud and DevOps Engineer: https://rslim087a.github.io/rayanslim/ 📝 Written Summary: https://rslim087a.github.io/rayanslim/lesson.html?course=prometheus-grafana-monitoring-course&lesson=prometheus-query-language-promql Follow me on Instagram: https://www.instagram.com/sir.rayanslim/ #promql #prometheus #monitoring