Promlabs
promlabs.com › promql-cheat-sheet
PromLabs | PromQL Cheat Sheet
Go get our self-paced in-depth PromQL training!
What is PromQL?
PromQL (Prometheus Query Language) is the query language built into Prometheus for selecting, filtering, and aggregating time series data. You use it to write expressions that power dashboards, alerts, and ad-hoc metric analysis.
last9.io
last9.io › blog › promql-cheat-sheet
PromQL Cheat Sheet: Queries, Functions, and Labels | Last9
How do I detect when a target is down in PromQL?
Use absent(up{job="my-service"}) == 1 to fire when no time series match the selector. Alternatively, up{job="my-service"} == 0 fires when the target is scraped but reports unhealthy. The absent() approach also covers the case where scraping stops entirely.
last9.io
last9.io › blog › promql-cheat-sheet
PromQL Cheat Sheet: Queries, Functions, and Labels | Last9
How do I filter by label values in PromQL?
Use curly brace selectors: http_requests_total{job="api", status="500"} for exact matches, {status=~"5.."} for regex matches, and {status!="200"} to exclude a value. Multiple label filters combine with AND logic.
last9.io
last9.io › blog › promql-cheat-sheet
PromQL Cheat Sheet: Queries, Functions, and Labels | Last9
PagerTree
pagertree.com › blog › promql-cheat-sheet-a-quick-guide-to-prometheus-query-language
✨ PromQL Cheat Sheet: A Quick Guide to Prometheus Query Language | PagerTree
June 13, 2023 - A quick guide to Prometheus Query Language (PromQL) with examples for querying time series data, aggregation functions, and range vectors.
Hurence Historian
hurence.github.io › historian › promql.html
PromQL Cheat Sheet | Hurence Historian
Historian provides a functional query language called PromQL (a subset of Prometheus Query Language) that lets the user select and aggregate time series data in real time.
HackingNote
hackingnote.com › en › cheatsheets › promql
Cheatsheet - PromQL
Prometheus, a powerful open-source monitoring and alerting toolkit, utilizes the Prometheus Query Language (PromQL) to explore and visualize time-series data. This cheat sheet provides a comprehensive overview of PromQL's essential components, from selectors and operators to functions and common ...
Cheatsheetindex
cheatsheetindex.com › home › promql cheat sheet
PromQL Cheat Sheet | Cheatsheetindex
March 3, 2023 - These functions can be combined to create more complex queries, allowing users to filter, aggregate, and transform their data in a variety of ways. PromQL also supports regular expressions, which makes it easy to search for specific patterns in your data. This cheat sheet provides a quick reference for PromQL queries.
Okulbida
okulbida.com › pf-infographic-promql-cheatsheet.pdf pdf
PromQL Cheatsheet Prometheus is a monitoring and alerting
PromQL · Cheatsheet · Prometheus is a monitoring and alerting · system with a text based metric format, a multidimensional data model and · a powerful query language. It’s now · widely used and is the de facto standard · for monitoring Kubernetes. Its metrics can be pulled from different ·
PromQL Cheatsheet
promql.fyi
PromQL Cheatsheet
{ } PromQL cheatsheet · / One-pager · Reference · v2.x · A modern reference for the Prometheus query language — types, selectors, operators, aggregations, functions, time syntax, and the gotchas you only learn at 3am.