🌐
Logz.io
docs.logz.io › user guide › infrastructure monitoring › introduction to prometheus › prometheus examples and best practices
Prometheus Examples and Best Practices | Logz.io Docs
For example, if the time series you're querying has the following labels: * namespace * container * pod * user To search for a namespace label that starts with **kub**, run the following query: `container_memory_working_set_bytes{namespace=~"kub.+"}`
🌐
SigNoz
signoz.io › guides › essential promql cheat sheet - master prometheus queries
Essential PromQL Cheat Sheet - Master Prometheus Queries | SigNoz
November 29, 2024 - For example: ... This can reveal bottlenecks or mismatches in service interactions. ... This query lists the top 10 metrics with the highest number of time series. ... This query returns 0 for any missing data points in http_requests_total. SigNoz is a comprehensive open-source APM and observability platform that complements Prometheus and extends PromQL capabilities.
🌐
Medium
medium.com › @Nitish_Mane › promql-examples-by-metric-type-2eb3ffb6aa8c
PromQL examples by Metric Type — Part 4 | by Nitish Mane | Medium
October 14, 2024 - These PromQL examples demonstrate how to use Counters in Prometheus for tracking totals, rates, and increases over time, making them ideal for monitoring things like request counts, error rates, resource usage, and more.
🌐
Last9
last9.io › blog › prometheus-query-examples
Essential Prometheus Queries: Simple to Advanced | Last9
June 15, 2026 - This guide covers practical Prometheus query examples from basic metric selection to advanced alerting and anomaly detection. Each example shows the query, what it returns, and how to adapt it for your own metrics. PromQL is Prometheus’s query language.
🌐
Coralogix
coralogix.com › home › promql tutorial: 5 tricks to become a prometheus god
PromQL Tutorial: Basic Concepts & Examples - Coralogix
June 3, 2025 - PromQL has two operators for counting up elements in a time series. Count() simply gives the total number of elements. Count_values() gives the number of elements within a time series that have a specified value. For example, we could count the number of binaries running each build version with the query:
🌐
Better Stack
betterstack.com › community › guides › monitoring › promql
The Beginner’s Handbook to PromQL | Better Stack Community
February 26, 2025 - The logical operators in PromQL (and, or, unless) are used to combine or filter instant vectors based on label sets and conditions. These operators operate only on instant vectors and help refine or manipulate query results. Let's look at each one in turn. The and operator computes the intersection of two vectors, keeping only the time series from the left-hand vector (vector1) that exist in both vectors and have matching label sets. For example, assume the following values for the node_network_receive_bytes_total and node_network_transmit_bytes_total metrics:
🌐
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 - PromQL allows you to query time series data, which consists of metrics and their corresponding labels. The basic syntax for querying time series is as follows: ... The above example would return an instance vector for each server in your fleet.
Find elsewhere
🌐
DevOpsSchool.com
devopsschool.com › blog › prometheus-promql-example-query
Prometheus PromQL Example Query
rate(promhttp_metric_handler_requests_total) #Error rate(promhttp_metric_handler_requests_total{code="200"}[1m]) # The average amount of CPU time spent in system mode, per second, over the last minute (in seconds) rate(node_cpu_seconds_total{mode="system"}[1m]) # The average network traffic received, per second, over the last minute (in bytes) rate(node_network_receive_bytes_total[1m]) rate(scrape_duration_seconds{instance="localhost:9100"}[1m:20s]) # Usability of such graphs is close to zero, because they show hard-to-interpret constantly growing counter values, while we need graphs for network bandwidth — see MB/s on the left of the graph. PromQL has a magic function for this — rate().
🌐
SigNoz
signoz.io › blog › prometheus query tutorial with examples
Prometheus Query Tutorial with examples | SigNoz
August 1, 2022 - Prometheus Query Language (PromQL) lets users query and aggregate metrics data in Prometheus for further analysis. In this tutorial, we will learn about Prometheus Query Language and see it in action using examples of PromQL...
🌐
Promlabs
promlabs.com › promql-cheat-sheet
PromLabs | PromQL Cheat Sheet
For more details about PromQL, see the official PromQL documentation: Basics · Operators · Functions · Examples · Want to learn more?
🌐
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 - An example query is sum by (status) (rate(http_requests_total[5m]) > 0). This takes the 5-minute rate of HTTP requests, filters to those that had some requests, then sums by status.
🌐
Prometheus
prometheus.io › docs › prometheus › latest › querying › examples
Query examples | Prometheus
This is an example of a nested subquery. The subquery for the deriv function uses the default resolution.
🌐
DEV Community
dev.to › sre_panchanan › decoding-promql-a-deep-dive-into-prometheus-query-language-4h23
Decoding PromQL: A Deep Dive into Prometheus Query Language - DEV Community
November 12, 2024 - Logical Operators: Booleans are often used with logical operators such as == (equals), != (not equals), and, or, and unless to construct conditional expressions in PromQL queries. Comparison Operators: Boolean expressions often involve comparison operators like <, >, <=, and >= to evaluate conditions based on metric values. Filtering and Filtering Conditions: Booleans are used to filter time series data based on specific conditions, allowing for selective analysis and alerting. Here are examples illustrating the characteristics of the Boolean data type in Prometheus:
🌐
Google
docs.cloud.google.com › cloud monitoring › promql for cloud monitoring
PromQL for Cloud Monitoring | Google Cloud Documentation
If your Prometheus metric name ... traditional PromQL syntax. For example, a valid query might look like job:my_metric:sum{label_key="label_value"}....
🌐
Webscale
webscale.com › home › blog › prometheus querying – breaking down promql
PromQL Querying: group_left, Joins, and Working Examples
June 8, 2026 - Working PromQL examples for group_left, ignoring, and label matching. Written by SREs running Prometheus in production at commerce scale.
🌐
Medium
abhinav332.medium.com › getting-started-with-promql-a-comprehensive-guide-4ae81757d9e3
Getting Started with PromQL: A Comprehensive Guide | by Abhinavsharma | Medium
February 27, 2024 - Example: ... This query returns the total increase in HTTP errors for the “api” job over the last 30 minutes. PromQL supports various binary operators like +, -, *, and / for arithmetic operations between vectors.
🌐
Zabbix
sbcode.net › prometheus › example-queries
PromQL Example Queries - Prometheus Tutorials
A numeric floating point value. Examples of scalars include -1, 12.34 and 12345678.9
🌐
GitHub
github.com › Naugrimm › promql-examples
GitHub - Naugrimm/promql-examples: Example Queries for Prometheus · GitHub
Example Queries for Prometheus. Contribute to Naugrimm/promql-examples development by creating an account on GitHub.
Author: Naugrimm