liveBook · Manning

PromQL

As explained in ScyllaDB in Action

PromQL is Prometheus's query language for selecting, aggregating, transforming, and analyzing time-series metrics.

PromQL is Prometheus’s query language for exploring, filtering, aggregating, and transforming time-series metrics. It helps inspect how ScyllaDB performance changes over time, using metrics collected from configured targets. section 11.1.2 section 11.4

A practical PromQL workflow includes:

  • Open Prometheus’s query window at http://localhost:9090 after checking that configured targets are online. section 11.1.2
  • Select a metric such as scylla_storage_proxy_coordinator_read_latency_sum and use labels to filter or distinguish metric series. section 11.1.2 section 11.4
  • Aggregate values across nodes or series with functions, then use the result to observe performance over time. section 11.1.2 section 11.4

Calculating average read latency

Start with the total read-latency metric: scylla_storage_proxy_coordinator_read_latency_sum. Aggregate it with sum(...), then divide by the aggregated read count: sum(scylla_storage_proxy_coordinator_read_latency_sum) / sum(scylla_storage_proxy_coordinator_read_latency_count). This produces a query for average read latency, a useful indicator of database performance. section 11.1.2

Figure 11.3 PromQL combines metrics, labels, functions, and recording rules to help you query and transform ingested metrics.
figure

Use the figure to see how PromQL combines metrics, labels, functions, and recording rules into queries and transformations. section 11.1.2

How ScyllaDB in Action covers it

How deep it goes
Demonstrates metric selection, labels, aggregation, and average latency, while only briefly noting smoothing and prediction.
Examples
Uses ScyllaDB read-latency metrics, metric labels, aggregation expressions, recording rules, and the Prometheus query window.
What it assumes
Assumes a configured Prometheus target and ingested metrics, then demonstrates basic queries without requiring distributed-systems expertise.
What you can do after
Apply PromQL via Prometheus to inspect, aggregate, and transform ingested metrics for performance observation.
How it connects
Connects PromQL with Prometheus, time-series metrics, labels, recording rules, Grafana, and Alertmanager.

Also explained in

Compare how 4 books explain PromQL →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of ScyllaDB in Action. The section links point to the parts of the book it draws on.