Prometheus
prometheus.io › docs › prometheus › latest › querying › examples
Query examples | Prometheus
Prometheus · DocsDownloadCommunitySupport & TrainingBlog · Ctrl + K · Show nav · Return all time series with the metric http_requests_total: http_requests_total · Return all time series with the metric http_requests_total and the given job and handler labels: http_requests_total{job="apiserver", handler="/api/comments"} 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: http_requests_total{job="apiserver", handler="/api/comments"}[5m] Note that an expression resulting in a range vector cannot be graphed directly, but viewed in the tabular ("Console") view of the expression browser.
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.
How to Get Accurate Node Memory Usage with Prometheus
If you're running it correctly, the node_exporter metrics are perfectly accurate. The exporter is a very simple pass-through of data gathered from /proc/meminfo from the kernel. $ cat /proc/meminfo MemTotal: 32439880 kB MemFree: 2735288 kB MemAvailable: 9717220 kB Buffers: 811496 kB Cached: 9435176 kB SwapCached: 38128 kB Active: 9086632 kB Inactive: 17511012 kB Those names look familiar? That's because the exporter takes those exact names and values and simply exposes them. The only real thing that can go wrong is to run the node_exporter without the required host cgroup namespaces. But deployment tools like kube-prometheus-stack should do the correct thing by default. The problem is, tracking memory use is not easy. It's actually a very complex subject and lots of other systems like kubectl top node are actually the source of inaccurate reporting. More on reddit.com
How can I see available fields in metrics?
Just query for the metric name in the Grafana explore view? Or maybe read the docs . More on reddit.com
Grafana Alloy and Prometheus
Configure prometheus to accept the remote writes, or for simplicity deploy Mimir its a fork of prometheus, and imo it is way more mature, and scalable. Install the alloy agent on youre linux node, build youre config.alloy and restart alloy agent. check prom for metrics/logs in a simple sense If you need a guide i can give you a quick one. also offer consulting services and guided implementations More on reddit.com
Gitlab + prometheus/grafana Guide anyone?
https://rtfm.co.ua/en/gitlab-monitoring-prometheus-metrics-and-grafana-dashboard/ Here is how I did GitLab monitoring on my previous project. More on reddit.com
30:27
How Prometheus Works - How to Collect Metrics - YouTube
13:28
Querying metrics w/ PromQL - YouTube
19:00
PromQL (Prometheus Query Language) - YouTube
01:11
How to build a Prometheus query in Grafana - YouTube
38:34
How to build a PromQL (Prometheus Query Language) - YouTube
04:07
Query metrics in New Relic using PromQL - YouTube
AWS
docs.aws.amazon.com › amazon managed service for prometheus › user guide › get started with amazon managed service for prometheus › query your prometheus metrics
Query your Prometheus metrics - Amazon Managed Service for Prometheus
Learn what you can do with metrics in your first Amazon Managed Service for Prometheus workspace.
SigNoz
signoz.io › guides › how to retrieve all prometheus metrics - a step-by-step guide
How to Retrieve All Prometheus Metrics - A Step-by-Step Guide | SigNoz
October 30, 2024 - Push Gateway: This is an intermediary service for short-lived jobs that can't be scraped directly. These jobs push their metrics to the Pushgateway, which then exposes them for Prometheus to scrape. Access to the collected metrics is provided through several methods: HTTP API: The primary interface for querying metrics (via endpoints like /api/v1/query).
Promlabs
promlabs.com › blog › 2020 › 12 › 17 › promql-queries-for-exploring-your-metrics
PromLabs | Blog - PromQL Queries for Exploring Your Metrics
December 17, 2020 - While the UI tooling for this is ... PromQL queries. The simplest (but not usually practical) possibility is to just list all series that have recent data. There are multiple ways to do this. For example, you could write a selector for any series that has a non-empty metric name (which is true for all series in Prometheus)...
Mkaz
mkaz.me › blog › 2023 › simple-prometheus-queries-for-metrics-inspection
Simple Prometheus queries for metrics inspection | Michal Kazmierczak
This query relies on one simple rule: Prometheus Query Language (PromQL) requires to provide either a metric name or at least one label matcher. __name__ is an internal label added to every metric with the value of the metric name.
Prometheus
prometheus.io › docs › prometheus › latest › querying › functions
Query functions | Prometheus
The core of the query is the expression ... info metric to use (target_info), what the identifying labels are (on (job, instance)), and which data labels to add (group_left (k8s_cluster_name)). This query is not only verbose and hard to write, it might also run into an “identity crisis”: If any of the data labels of target_info changes, Prometheus sees that ...
Grafana
grafana.com › docs › grafana › latest › datasources › prometheus › query-editor
Prometheus query editor | Grafana documentation
The Metrics explorer (Builder mode) and Metrics browser (Code mode) are separate components. The Metrics explorer does not browse labels, but the Metrics browser can display all labels on a metric. Code mode is for experienced Prometheus users who prefer writing PromQL directly. For more information about PromQL, refer to Querying Prometheus.
Prometheus
prometheus.io › docs › prometheus › latest › querying › api
HTTP API | Prometheus
Per-step count of samples read (delta semantics for range-vector). peakSamples: Peak number of samples in memory during evaluation. The server also exposes two Prometheus metrics: prometheus_engine_query_samples_total (samples loaded) and prometheus_engine_query_samples_read_total (samples read).
SigNoz
signoz.io › guides › essential promql cheat sheet - master prometheus queries
Essential PromQL Cheat Sheet - Master Prometheus Queries | SigNoz
November 29, 2024 - PromQL provides various mechanisms—instant vectors, range vectors, offsets, and subqueries—to extract and manipulate time-series data effectively. Instant vectors allow you to query the current state of a metric at a specific point in time.
Grafana
grafana.com › docs › grafana-cloud › machine-learning › mcp › guides › query-metrics-with-prometheus
Query metrics with Prometheus | Grafana Cloud documentation
For example, you might say “What is the current value of up for the Prometheus datasource?” or “Run this PromQL: rate(http_requests_total[5m]).” The assistant uses the server’s Prometheus query tool with the datasource UID and your time range. You can request instant queries (single value) or range queries (series over time). Ask the assistant to list metric names, label names, or label values for a given selector.
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 - Rather than storing metrics in ... own time series. PromQL (Prometheus Query Language) is Prometheus' powerful query language for retrieving, transforming, aggregating, and analyzing time-series metrics....
Google Cloud
cloud.google.com › cloud monitoring › promql for cloud monitoring
PromQL for Cloud Monitoring | Google Cloud Documentation
PromQL lets you query and chart Cloud Monitoring data from the following sources: Google Cloud services, such as Google Kubernetes Engine or Compute Engine, that write metrics described in the lists of Cloud Monitoring system metrics. User-defined metrics, such as log-based metrics and Cloud Monitoring user-defined metrics. Google Cloud Managed Service for Prometheus, the fully managed multi-cloud solution for Prometheus from Google Cloud.