Prometheus, end to endPrometheus expert: native histograms, PromQL mastery, exporters, Kubernetes, troubleshooting and cost
6 lessons · about 110 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
Expert level: native histograms (stable since Prometheus 3.8) and their migration, PromQL joins, prediction and time travel, exporters and batch jobs done the maintainers' way, monitoring Kubernetes with USE and RED, troubleshooting Prometheus from its own pages, and capacity and cost with OpenCost.
Before you start: Courses c50 and c51 (Prometheus foundations and production).
What you'll learn
- Classic: a series per bucket; native: one series, automatic exponential buckets
- scrape_native_histograms: true per job (3.8+), Protobuf only
- Keep always_scrape_classic_histograms during migration
- histogram_fraction gives a latency SLI directly
- on (...) group_left (...) copies labels from the one side of a join
- predict_linear for exhaustion, offset 1w for week-on-week, @ for fixed times
- absent and absent_over_time catch vanished series
- Narrow selectors, record expensive expressions, mind refresh rates
- Counter for events, gauge for state, histogram for distributions
- Bounded labels only; units in names; initialise known labels
- Exporters collect at scrape time and expose their own success metric
- Pushgateway only for service-level batch jobs; textfile collector per machine
Lessons
1. Native histograms: precision without the bucket explosion
Native histograms became a stable feature in Prometheus 3.8. Learn how they differ from classic histograms, how to scrape and query them, and how to migrate dashboards and alerts without breaking anything.
Sign in to open the lesson
2. PromQL mastery: joins, prediction, time travel and fast queries
Write the queries that separate experts from beginners: joining with group_left, adding metadata, predicting exhaustion, comparing with last week, detecting missing data, and keeping expensive queries fast.
Sign in to open the lesson
3. Exporters and instrumentation in depth: Go, Python, batch jobs and the Pushgateway
Instrument services and write exporters the way the Prometheus maintainers recommend: the right metric types, labels that won't explode, collectors that read state at scrape time, and the narrow case where pushing is right.
Sign in to open the lesson
4. Monitoring Kubernetes itself: kube-state-metrics, cAdvisor and the USE and RED methods
Know which component tells you what: cAdvisor for container resource use, kube-state-metrics for object state, the kubelet and control plane for the cluster's health. Then organise dashboards and alerts with USE for resources and RED for services.
Sign in to open the lesson
5. Troubleshooting Prometheus: missing targets, gaps, memory and slow rules
When monitoring breaks, it breaks silently. Diagnose targets that disappear, scrapes that fail, gaps in graphs, a Prometheus that runs out of memory and rules that fall behind, using Prometheus's own pages and metrics.
Sign in to open the lesson
6. Capacity, cost and the Prometheus expert's capstone
Use Prometheus to plan capacity and control cost: forecast growth, size clusters from requests and usage, attribute spend with OpenCost, size Prometheus itself, and finish with an expert capstone you can show employers.
Sign in to open the lesson
Common questions
Do I have to change application code?
To get exponential native histograms, yes: enable them in the client library. Prometheus can also convert classic histograms to native histograms with custom buckets at scrape time, which needs no code change.
Is info() safe to use?
It's experimental in Prometheus 3 and behind a feature flag; group_left joins work everywhere and are what the PCA expects.
Should I use OpenTelemetry instead of Prometheus clients?
Either can produce Prometheus-compatible metrics. OpenTelemetry suits teams already using it for traces; Prometheus clients are simpler for metrics alone.
Do I need kube-prometheus-stack?
It's the quickest way to get Prometheus, Alertmanager, Grafana, kube-state-metrics and the mixin rules together. Managed Prometheus services offer similar packages.
Where are these status pages in Prometheus 3?
The new UI keeps them under the Status menu: Target health, Service discovery, TSDB status, Configuration, Rules and Runtime info.
Does OpenCost work with AKS, EKS and GKE?
Yes. It reads cloud pricing for the major providers and can use custom prices for on-premises clusters.