Prometheus and Grafana are the most common open-source pair for metrics: Prometheus scrapes and stores time series and evaluates alerts, Grafana turns them into dashboards. They work on a single VPS as well as on large Kubernetes clusters. This course goes deep on these two tools: setting them up, writing PromQL that answers real questions, and building alerts and dashboards that help during an incident rather than adding noise.

What you'll learn

  • The Prometheus data model: metrics, labels, samples and the four metric types
  • Installing Prometheus 3 and configuring scrape targets and service discovery
  • Exporters: node exporter, cAdvisor, blackbox exporter and database exporters
  • Instrumenting your own application with client libraries, and OpenTelemetry metrics in Prometheus
  • PromQL: selectors, rate, increase, aggregation, histograms and quantiles
  • Label cardinality: why some metrics blow up memory and how to avoid it
  • Recording rules and alerting rules, and writing alerts on symptoms rather than causes
  • Alertmanager: routing, grouping, silences and sending to Slack, email or PagerDuty
  • Grafana: data sources, variables, panels, dashboard provisioning as code and Grafana alerting
  • Long-term storage and scaling options such as Thanos, Mimir and VictoriaMetrics

Who it's for

  • DevOps and platform engineers setting up monitoring for the first time
  • Backend developers who want to instrument their own services
  • Sysadmins moving from Nagios or Zabbix to a metrics-based approach

Prerequisites

  • Comfortable with Linux and Docker
  • Experience running a web application in production
  • Kubernetes knowledge helps for one module but isn't required

Outcomes

By the end of this course you will be able to:

  1. Deploy Prometheus, exporters and Grafana to monitor servers, containers and services.
  2. Instrument an application with useful metrics and sensible labels.
  3. Write PromQL for rates, error ratios and latency percentiles.
  4. Build alerts and dashboards that point people straight at the problem.

Projects you'll build

  • Server and container monitoring – Prometheus, node exporter and cAdvisor on a Docker host with a provisioned Grafana dashboard, practising scrape configuration and exporters.
  • Instrumented API – add request, error and duration metrics to a Node.js or Python API and build a RED dashboard, practising client libraries and histogram queries.
  • Alerting that pages wisely – latency and error-rate alerts with routing, grouping and an escalation path, practising rule writing and Alertmanager configuration.

Tools you'll use

Prometheus 3.x, Grafana 12, Alertmanager, node exporter, cAdvisor, blackbox exporter, Docker Compose, and kube-prometheus-stack for the Kubernetes module.

Course outline

ModuleTopic
1Metrics-based monitoring and the Prometheus model
2Installing Prometheus and scraping targets
3Exporters for hosts, containers and databases
4Instrumenting applications
5PromQL fundamentals
6Histograms, percentiles and cardinality
7Recording and alerting rules
8Alertmanager routing and notifications
9Grafana dashboards and provisioning
10Monitoring Kubernetes
11Long-term storage and scaling
12Project: full monitoring for a production app

FAQ

How is this different from Observability: Logging and Monitoring?

Observability: Logging and Monitoring covers logs, metrics and tracing together, with OpenTelemetry and SLOs. This course goes much further into the metrics side using Prometheus and Grafana specifically.

Do I need Kubernetes?

No. Most of the course runs on a single Docker host. Kubernetes monitoring is one module.

What about SLOs and on-call?

We write SLO-based alerts, but the wider practice of error budgets and on-call is covered in Site Reliability Engineering Basics.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.