Home / Prometheus + Grafana Beginner
Prometheus + Grafana Beginner
Prometheus collects the numbers and Grafana draws them. The data model, PromQL, dashboards built panel by panel, and alerts fired for real.
Prometheus collects the numbers and Grafana draws them. This course teaches both from zero: the data model, PromQL, dashboards built panel by panel, and alerts fired for real — 50 short lessons on Prometheus 3.16.0 and Grafana 13.3.1.
Course contents
Work top to bottom — the sidebar is the course. Topics later in the list assume the ones before them.
Monitoring Basics
- Prometheus: What Is Monitoring?
- Prometheus: Metrics, Logs and Traces
- Prometheus: What Is Prometheus?
- Grafana: What Is Grafana?
Install the Stack
- Prometheus: Install Prometheus
- Grafana: Install Grafana
- Prometheus: One Docker Compose File for the Whole Lab
- Prometheus: Your First Scrape: Node Exporter
- Grafana: Connect Grafana to Prometheus
The Prometheus Data Model
- Prometheus: Metrics, Labels and Time Series
- Prometheus: Counters and Gauges
- Prometheus: Histograms and Summaries
- Prometheus: Choosing the Right Metric Type
Your First Instrumented App
- Prometheus: Meet ShopSentry
- Prometheus: Expose Metrics from Your Own Code
- Prometheus: Custom Metrics That Answer Real Questions
- Prometheus: Scrape Your App
PromQL Basics
- PromQL: Your First PromQL Query
- PromQL: Selectors and Label Matching
- PromQL: Operators
- PromQL: Aggregation: sum, avg, topk
- PromQL: Functions You Will Use Every Day
- PromQL: Time: offset and the @ Modifier
PromQL in Depth
- PromQL: rate, irate and increase
- PromQL: The Five Queries That Lie
- PromQL: Histograms and histogram_quantile
- PromQL: Recording Rules
- PromQL: Subqueries and Vector Matching
Dashboards in Grafana
- Grafana: Your First Panel
- Grafana: Panel Types: When to Use Which
- Grafana: The ShopSentry Dashboard
- Grafana: Dashboard Variables
- Grafana: Transformations and Overrides
- Grafana: Dashboards as Code
Alerting with Prometheus
- Prometheus: Alerting Rules
- Prometheus: Test Your Alerts with promtool
- Alertmanager: Routing and Grouping
- Alertmanager: Inhibition and Silences
- Prometheus: Fire an Alert for Real
Grafana Alerting
- Grafana: Grafana Alert Rules
- Grafana: Contact Points and Notification Policies
- Grafana: Alert State History and No-Data Handling
Operating Prometheus
- Prometheus: Reload Without Restart
- Prometheus: Retention and Storage
- Prometheus: Service Discovery
- Prometheus: Federation, Remote Write and High Availability
Monitoring Kubernetes
Start: Prometheus: kube-prometheus-stack ❯Wrap-Up and Capstone
- Prometheus and Grafana: Best Practices
- Prometheus and Grafana: Capstone: ShopSentry, Fully Monitored
Learn Prometheus and Grafana
Prometheus is a collector and store for numbers measured over time. It visits each service on a schedule, asks for its metrics page, and stores every number with a timestamp. Grafana is the dashboard layer: it stores no metrics itself, it asks Prometheus questions and turns the answers into graphs, tables and gauges.
The course holds 50 lessons in 12 sections, at about seven minutes a lesson — 362 minutes in total, about six hours of reading and practice. It moves in the order a beginner actually needs: what monitoring is, installing the stack, the data model, a first instrumented app, PromQL in two passes, dashboards, two kinds of alerting, operating the server, Kubernetes monitoring, and a capstone.
One app runs through the whole course: ShopSentry, a small demo shop with a metrics page and a break switch. Each section adds a real piece to it, and the capstone is the finished thing: recording rules, a dashboard committed as code, tested alerts, a real receiver, and then the service broken on purpose to watch the whole pipeline fire.
Nothing here is a guess. Every closing example was run for real against Prometheus 3.16.0, Grafana 13.3.1, Node Exporter 1.12.1 and Alertmanager 0.34.2, and the output shown with each example is the output the real run gave. The course is honest about its limits: the Docker Compose steps are stated, not run, because the build machine has no working Docker daemon; the Kubernetes lessons are stated, not run, because it has no cluster; and the Grafana panels were built through the Grafana API and read back, not clicked in a browser.
What you will learn
Here is what the 50 lessons cover, in the order they teach it:
- What monitoring is, and how metrics, logs and traces answer different questions
- Installing Prometheus and Grafana, and running the whole lab from one Docker Compose file
- The Prometheus data model: time series, labels, counters, gauges, histograms and summaries
- Instrumenting your own app: the ShopSentry demo shop, client libraries, and scraping it
- PromQL basics: selectors, operators, aggregation, everyday functions, offset and the @ modifier
- PromQL in depth: rate, irate and increase, the five queries that lie, histogram_quantile, recording rules, subqueries and vector matching
- Dashboards in Grafana: first panel, panel types, the ShopSentry dashboard, variables, transformations and dashboards as code
- Alerting with Prometheus: alerting rules, promtool test rules, Alertmanager routing and grouping, inhibition and silences, and firing an alert for real
- Grafana alerting: Grafana alert rules, contact points and notification policies, and no-data handling
- Operating Prometheus: reload without restart, retention and storage, service discovery, federation, remote write and high availability
- Monitoring Kubernetes: kube-prometheus-stack and ServiceMonitors with the Prometheus Operator
- Best practices, a PromQL cheat sheet, and the capstone: ShopSentry, fully monitored
Who this course is for
This course is for readers who run services and want to know when they break — before users report it. No metrics experience is needed. The opening section names exactly what it assumes, so the starting point can be checked in a minute.
Docker familiarity helps, because the lab runs in Docker Compose. Docker Beginner teaches what the lab file needs, and the course hands the reader the Compose file rather than teaching Docker itself. The ShopSentry demo is Python, but the course teaches the few client-library lines it uses as it goes.
It suits someone who has watched a dashboard somewhere and now wants to build one: the queries behind each panel, the alerts behind each page, and the operating habits that keep the whole thing useful instead of noisy.
How this course works
Every closing example was run for real on Prometheus 3.16.0, Grafana 13.3.1, Node Exporter 1.12.1 and Alertmanager 0.34.2 before publication. The output printed beside it is the output the real run gave, not a guess. That matters most when a lesson turns on a query result or an alert firing, where a guessed line would teach the wrong thing.
The sections run in one fixed order. PromQL in depth leans on PromQL basics, dashboards lean on PromQL, and alerting leans on both. Reading out of order is allowed, but the missing piece usually shows up fast.
The course is honest about what was verified and what was not. The Docker Compose steps are stated, not run here, because the build machine has no working Docker daemon — the same four services ran as binaries instead. The Kubernetes lessons are stated, not run, because the machine has no cluster. The Grafana panels were built through the Grafana HTTP API and read back the same way, and the lessons say so.
Every lesson ends with one exercise. Pick an answer, then read why it is right and why the tempting answers are wrong. That short check turns reading into a small test of what stuck.
Progress is saved right here in this browser, with no account and no cost. Close the tab and come back later: the course remembers where the reader stopped.
Frequently asked questions
Do I need a cloud account for this Prometheus and Grafana course?
No. The whole lab runs on your own machine from one Docker Compose file: Prometheus, Grafana, Node Exporter and Alertmanager, plus the ShopSentry demo shop. No cloud account and no payment are needed for any lesson.
Which versions of Prometheus and Grafana does the course use?
Prometheus 3.16.0, Grafana 13.3.1, Node Exporter 1.12.1 and Alertmanager 0.34.2, pinned throughout. The install lesson also names the Prometheus 3.13 long-term support line as the conservative choice, supported to 31 July 2027.
Do I need to know Docker first?
It helps, but the course hands you the Compose file rather than teaching Docker. Docker Beginner teaches what the file needs: containers, images, ports and Compose. The build machine for this course had no working Docker daemon, so its Compose steps are stated, not run there — the same four services ran as binaries instead, and the lessons say so plainly.
Should I use Prometheus alerting or Grafana alerting?
Both are taught, in sequence, with the decision stated plainly. Use Prometheus alerting when the alerts live with the Prometheus rules and Alertmanager. Use Grafana alerting when the alert needs data from more than one data source. Lesson 41 gives the full decision.
What do I build in this course?
A monitored service, end to end. ShopSentry gets recording rules, a finished dashboard with variables and the four golden signals, committed as code, Prometheus alerting rules tested with promtool, Alertmanager routing to a real receiver, and a Grafana alert rule — then the service is broken on purpose and the whole pipeline is watched firing.
Does this course teach Kubernetes monitoring?
As a destination, not a detour. Section 11 teaches kube-prometheus-stack — what the Helm chart installs, which dashboards it ships and how to read them — and ServiceMonitors with the Prometheus Operator. The Kubernetes Beginner course is the next step after this one.
Next steps
- Docker Beginner ❯ — Learn the tool the lab runs on. Docker teaches containers, images, volumes, networking and Compose, from a first container to a shipped app.
- Kubernetes Beginner ❯ — Learn the platform the last section points at. Kubernetes runs containers across many machines, from a first pod to a real three-tier app.
- Git Beginner ❯ — Learn the version control dashboards as code depends on. Git tracks snapshots, branches and merges, and this course teaches one command at a time.