Helmsman Academy
Prometheus, end to end

Prometheus foundations: concepts, architecture, scraping and PromQL

6 lessons · about 108 minutes of reading · Helmsman Pro

This page is the public course outline. Lessons, labs, tools and exams open after you sign in to your free account.

Sign in and start

In short

The concepts and core of Prometheus: metrics, logs and traces, SLOs, the architecture and data model, configuration and service discovery, PromQL from selectors to histogram quantiles, and instrumentation with the right metric types and names.

Before you start: Linux basics. Course 1 helps; no prior monitoring experience needed.

What you'll learn

Lessons

1. Observability concepts: metrics, logs, traces and SLOs

The signals of observability and what each is good for, push versus pull, service discovery, and SLIs, SLOs and SLAs: the first PCA domain.

Sign in to open the lesson

2. Prometheus architecture, data model and exposition format

The components of a Prometheus system, the time-series data model with metric names and labels, the text exposition format, what Prometheus 3 changed, and its limits.

Sign in to open the lesson

3. Configuration, scraping, service discovery and relabelling

Write prometheus.yml: global settings, scrape jobs, static and Kubernetes discovery, relabel_configs versus metric_relabel_configs, scrape health metrics and safe reloads.

Sign in to open the lesson

4. PromQL I: selectors, rates and aggregation

Select data with matchers, understand instant and range vectors, use rate, irate and increase correctly on counters, and aggregate over time and over dimensions.

Sign in to open the lesson

5. PromQL II: binary operators, vector matching, histograms and subqueries

Combine series with arithmetic and comparison operators, match vectors with on, ignoring and group_left, compute latency percentiles from classic and native histograms, and use subqueries and absent.

Sign in to open the lesson

6. Instrumentation, metric types, naming and exporters

Instrument code with the client libraries, choose between counters, gauges, histograms and summaries, name metrics and labels well, and use and write exporters.

Sign in to open the lesson

Common questions

When is push the right model?

Short-lived batch jobs and sources Prometheus can't reach; use the Pushgateway or remote write.

Which exporter exposes Kubernetes object state (desired replicas, pod phases)?

kube-state-metrics.

Which label holds the address Prometheus will scrape?

__address__.

What does without (instance) do in sum without (instance) (...)?

Aggregates away the instance label and keeps all others.

What does the bool modifier change?

Comparisons return 0 or 1 instead of filtering series out.

What port does node_exporter use by default?

9100.