Prometheus
prometheus.io › docs › prometheus › latest › querying › basics
Querying basics | Prometheus
PromQL supports line comments that start with #. Example:
43:11
PromQL Tutorial: A COMPLETE Guide to Prometheus Queries - YouTube
10:Prometheus Selectors and Matchers with Examples ...
05:26
9:PromQL(Prometheus Query Language)Tutorial | PromQL ...
18:31
PromQL Explained: Mastering Data Types, Selectors, and Modifiers ...
13:28
Querying metrics w/ PromQL - YouTube
19:00
PromQL (Prometheus Query Language) - YouTube
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.
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:
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:
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.
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().
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.
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?
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"}....
Grafana
grafana.com › docs › grafana › latest › datasources › prometheus › query-editor
Prometheus query editor | Grafana documentation
Exemplars link aggregated metric data to specific trace examples, letting you jump from a spike directly to a relevant trace. For more information, refer to Introduction to exemplars. ... Exemplars are not available with Instant query types. Builder mode helps you build queries using a visual interface. This option is best for users who have limited experience with PromQL...