Prometheus
prometheus.io › docs › prometheus › latest › querying › examples
Query examples | Prometheus
Join PromCon EU 2026 , the Prometheus users conference, on October 7–8, 2026 in Munich. PromCon EU 2026 — Oct 7–8, Munich. ... Return a whole range of time (in this case 5 minutes up to the query time) for the same vector, making it a range vector:
43:11
PromQL Tutorial: A COMPLETE Guide to Prometheus Queries - YouTube
13:28
Querying metrics w/ PromQL - YouTube
19:00
PromQL (Prometheus Query Language) - YouTube
18:31
PromQL Explained: Mastering Data Types, Selectors, and Modifiers ...
11:28
Example Queries | Prometheus for beginners - 6 - YouTube
Practical Guide to PromQL: Learn from Scratch to Query ...
Prometheus
prometheus.io › docs › prometheus › latest › querying › basics
Querying basics | Prometheus
In this example, we select all the values recorded less than 5m ago for all time series that have the metric name http_requests_total and a job label set to prometheus: ... The offset modifier allows changing the time offset for individual instant and range vectors in a query.
SigNoz
signoz.io › blog › prometheus query tutorial with examples
Prometheus Query Tutorial with examples | SigNoz
August 1, 2022 - Understanding how the Prometheus time-series engine stores data gives you an idea of intended query results before, while, and as your expressions execute. For example, if the data you're looking for has different timestamps/or is just unknown in complexity, and you wish to aggregate (sum or average) occurrences, it might be best for you to create subqueries that end with tabular views.
Logz.io
logz.io › home › blog › how to › an intro to promql: basic concepts & examples
An Intro to PromQL: Basic Concepts & Examples | Logz.io
September 2, 2023 - PromQL, short for Prometheus Querying Language, is the main way to query metrics within Prometheus. You can display an expression’s return either as a graph or export it using the HTTP API. PromQL uses three data types: scalars, range vectors, and instant vectors. It also uses strings, but only as literals. This intro will provide basic PromQL examples and concepts to understand as you get used to Prometheus queries.
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.
Prometheus
prometheus.io › docs › prometheus › latest › querying › functions
Query functions | Prometheus
If the old target_info series is ... the query above will fail for up to 5m (the lookback delta) because it will find a conflicting match with both the old and the new version of target_info. The info function not only resolves this conflict in favor of the newer series, it also simplifies the syntax because it knows about the available info series and what their identifying labels are. The example query looks ...
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
Searching a label inside a time series changes the query. You need to add the name of the time series, and the value you're looking for: nameOfTimeSeries{label=~"value.+"} 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.+"}`
Hexmos
hexmos.com › freedevtools › c › prometheus › prometheus
Prometheus Cheatsheet - PromQL Queries & Configuration Cheatsheet | prometheus Reference | Online Free DevTools
Query: label_values(container_last_seen{container_label_com_docker_swarm_service_name=~"proxy_traefik", container_label_com_docker_swarm_node_id=~".+"}, container_label_com_docker_swarm_node_id)
DevOpsSchool.com
devopsschool.com › blog › prometheus-promql-example-query
Prometheus PromQL Example Query
For instance, the following query would return week-old data for all the time series with node_network_receive_bytes_total name: node_network_receive_bytes_total offset 7d · If we have two different metrics with the same dimensional labels, we can apply binary operators to them and elements on both sides with the same label set will get matched and propagated to the output. For example, this expression returns the unused memory in MiB for every instance (on a fictional cluster scheduler exposing these metrics about the instances it runs): (instance_memory_limit_bytes – instance_memory_usage_bytes) / 1024 / 1024
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 - Strings in PromQL are enclosed in either single or double quotes, as shown in these examples defining the string literals "metric_name" or 'metric_name'. ... This query selects time series with the label "job" having the value "api" and the label "environment" having the value 'staging'. The instant vector in Prometheus is a set of time series data, each associated with a single value at a specific point in time.
Prometheus
prometheus.io › docs › prometheus › latest › querying › api
HTTP API | Prometheus
The following example formats the expression foo/bar: curl 'http://localhost:9090/api/v1/format_query?query=foo/bar' ... This endpoint is experimental and might change in the future. It is currently only meant to be used by Prometheus' own web UI, and the endpoint name and exact format returned ...