🌐
Grafana
grafana.com › blog › inside-promql-a-closer-look-at-the-mechanics-of-a-prometheus-query
Inside PromQL: A closer look at the mechanics of a Prometheus query | Grafana Labs
October 9, 2024 - If you’re learning PromQL, Grafana’s builder mode for the Prometheus query editor is very useful to see how expressions build up, and makes it easy to see what operations are available. PromLens, a stand-alone tool and another query builder for PromQL, takes this a step further and helps you build, understand, and optimize your queries. The Prometheus documentation is the ultimate reference, but this helpful PromQL cheat sheet ...
🌐
Grafana
grafana.com › blog › 2020 › 02 › 04 › introduction-to-promql-the-prometheus-query-language
Introduction to PromQL, the Prometheus query language | Grafana Labs
February 5, 2020 - As supplements to this post, check out this excellent recorded talk by Ian Billett from PromCon EU 2019: PromQL for Mere Mortals. If you’re interested in a PromQL cheat sheet check out Timber’s PromQL for Humans or PromLabs’ PromQL Cheat Sheet.
People also ask

Can I use PromQL in Grafana?
Yes. Grafana supports Prometheus as a native data source, allowing you to use PromQL directly in panels, dashboard variables, alerts, and Explore mode. ---
🌐
techalmirah.com
techalmirah.com › home › cheatsheets › prometheus query cheat sheet: 50+ essential promql queries, functions, and examples (2026 guide)
Prometheus Query Cheat Sheet: 50+ Essential PromQL Queries, ...
How can I improve PromQL query performance?
Focus on reducing query complexity by using recording rules, minimizing high-cardinality labels, filtering early, limiting expensive joins, and selecting the shortest practical range vectors. ---
🌐
techalmirah.com
techalmirah.com › home › cheatsheets › prometheus query cheat sheet: 50+ essential promql queries, functions, and examples (2026 guide)
Prometheus Query Cheat Sheet: 50+ Essential PromQL Queries, ...
What is PromQL used for?
PromQL is the query language for Prometheus. It retrieves, transforms, and analyzes time-series metrics used in dashboards, alerting, troubleshooting, and capacity planning. ---
🌐
techalmirah.com
techalmirah.com › home › cheatsheets › prometheus query cheat sheet: 50+ essential promql queries, functions, and examples (2026 guide)
Prometheus Query Cheat Sheet: 50+ Essential PromQL Queries, ...
🌐
GitHub
github.com › ruanbekker › cheatsheets › blob › master › prometheus › README.md
cheatsheets/prometheus/README.md at master · ruanbekker/cheatsheets
# full example: https://gist.github.com/ruanbekker/72216bea59fc56af189f5a7b2e3a8002 scrape_configs: - job_name: 'multipass-nodes' static_configs: - targets: ['ip-192-168-64-29.multipass:9100'] labels: env: test - targets: ['ip-192-168-64-30.multipass:9100'] labels: env: test # https://grafana.com/blog/2022/03/21/how-relabeling-in-prometheus-works/#internal-labels relabel_configs: - source_labels: [__address__] separator: ':' regex: '(.*):(.*)' replacement: '${1}' target_label: instance
Author: ruanbekker
🌐
DevOpsil
devopsil.com › home › monitoring › promql: cheat sheet
PromQL: Cheat Sheet | DevOpsil
March 23, 2026 - PromQL cheat sheet with copy-paste query examples for rates, aggregations, histograms, label matching, recording rules, and alerting expressions.
🌐
Techalmirah
techalmirah.com › home › cheatsheets › prometheus query cheat sheet: 50+ essential promql queries, functions, and examples (2026 guide)
Prometheus Query Cheat Sheet: 50+ Essential PromQL Queries, Functions, and Examples (2026 Guide) | TechAlmirah
October 29, 2025 - Master PromQL with this comprehensive Prometheus Query Cheat Sheet. Learn syntax, operators, label selectors, vector matching, aggregation functions, Kubernetes monitoring, Grafana queries, and production-ready examples.
🌐
Grafana
grafana.com › blog › 2021 › 01 › 29 › basics-and-best-practices-for-getting-started-with-promql
Basics and best practices for getting started with PromQL | Grafana Labs
October 12, 2021 - For example, the figure below illustrates a PromQL query that selects only those time series with the http_requests_total metric name that have the job label set to Prometheus and the group label set to canary.
🌐
Okulbida
okulbida.com › posts › prom-cheat-sheet
PromQL cheat sheet | Oleksandr Kulbida
Key functions — rate, irate, increase, histogram_quantile, absent, absent_over_time, delta, predict_linear, age Aggregations — sum, count, topk, by/without, quantile_over_time, bool, offset Label manipulation — label_replace, label_join ...
Find elsewhere
🌐
Promlabs
promlabs.com › promql-cheat-sheet
PromLabs | PromQL Cheat Sheet
Want to learn more? Check out our self-paced in-depth PromQL training by the creator of PromQL.
🌐
Medium
medium.com › @pradeepsunku › mastering-prometheus-queries-in-grafana-99b3849b1e03
Mastering Prometheus Queries in Grafana | by PradeepSunku | Medium
August 10, 2024 - Note: Using $__interval in your Grafana queries is often sufficient for many types of queries, particularly when you want your data to automatically adjust to the dashboard's time range and resolution. ... These are the queries and functions I use often and I thought it could be of a great help for beginners. Credits to https://promlabs.com/promql-cheat-sheet...
🌐
Medium
valyala.medium.com › promql-tutorial-for-beginners-9ab455142085
PromQL tutorial for beginners and humans | by Aliaksandr Valialkin | Medium
September 15, 2023 - It doesn’t cover common table expressions from MetricsQL (aka CTE or WITH templates), which allows simplifying complex PromQL queries with many repeated label filters templated in Grafana. It doesn’t cover other useful features from MetricsQL supported by VictoriaMetrics. I’d recommend continuing learning PromQL with this cheat sheet.
🌐
Hurence Historian
hurence.github.io › historian › promql
PromQL Cheat Sheet | Hurence Historian
Each time series in Grafana optionally has labels. labels are set a of key/value pairs for identifying dimensions. Example labels could are {location=us} or {country=us,state=ma,city=boston}. Within a set of time series, the combination of its name and labels identifies each series.
🌐
Medium
medium.com › @ronyaurora › promql-101-beginner-prometheus-query-examples-with-grafana-4df701189a94
PromQL 101: Beginner Prometheus Query Examples With Grafana | by Rony Aurora | Medium
December 16, 2024 - With these basic PromQL queries, you have the tools to monitor and analyze key metrics using Prometheus and Grafana.
🌐
Prometheus
prombench.prometheus.io › grafana › explore
PromQL Cheat Sheet - Grafana
If you're seeing this Grafana has failed to load its application files · 1. This could be caused by your reverse proxy settings. 2. If you host grafana under subpath make sure your grafana.ini root_url setting includes subpath. If not using a reverse proxy make sure to set serve_from_sub_path ...
🌐
Logit
logit.io › home › blog › promql cheat sheet
PromQL Cheat Sheet
February 4, 2025 - PromQL is the dedicated query language for the metrics and monitoring Stack known as Prometheus. PromQL is well know for having a steep learning curve. Because of this we've created a helpful cheat sheet as a reference to help you with understanding the most common PromQL queries.
🌐
Coralogix
coralogix.com › home › promql tutorial: 5 tricks to become a prometheus god
PromQL Tutorial: Basic Concepts & Examples - Coralogix
June 3, 2025 - This online editor allows you to get started with PromQL without downloading Prometheus. As well as tabular and graph views, there is also an “explain” view. This gives the straight dope on what each function in your query is doing, helping you understand the language in the process. ... This tutorial by Coralogix explains how to integrate your Grafana instance with Coralogix, or you can use our hosted Grafana instance that comes automatically connected to your Coralogix data.
🌐
Grafana Labs
learn.grafana.com › building-efficient-queries-promql-1
Module: Building Efficient Queries: PromQL
In this course, you will learn how to write efficient PromQL queries to retrieve and analyze metrics in Grafana.
🌐
Grafana
grafana.com › files › PromCon_2024_Inside-a-PromQL-Query.pdf pdf
Bryan Boreham Grafana Labs Inside a PromQL Query @bboreham
PromQL · A query is built up from: ● · Selectors: http_requests_total{status="200"}. ● · Functions: abs, rate. ● · Aggregations: sum by (status). ● · Operators: >, +. PromQL Example · rate(http_requests_total[5m]) > 0 · Abstract Syntax Tree · rate(http_requests_total[5m]) > 0 ·
🌐
Better Stack
betterstack.com › community › guides › monitoring › promql
The Beginner’s Handbook to PromQL | Better Stack Community
February 26, 2025 - This guide introduces PromQL basics, covering data types, query structures, and practical examples to help you master Prometheus queries and analyze metrics