
This course contains the use of artificial intelligence.
Prometheus and Grafana are two of the most used tools for monitoring servers and cloud systems. Prometheus collects numbers about your servers and services, and Grafana turns them into graphs and dashboards. This is a complete beginner course: you learn the ideas first, and then you build and test everything yourself in real hands-on labs.
The labs run on Rocky Linux 9.7 and Ubuntu 24.04.4, and one lab adds a third server with Debian 12. You see the real commands and the real output, including the errors, and you learn where the systems differ: package names, folders, service names, firewalls and helper commands. The tools in the labs are Prometheus 3.15.0, Alertmanager 0.34.1, node_exporter 1.12.1, blackbox_exporter 0.29.0, Pushgateway 1.11.4, Grafana 13.2.4, mysqld_exporter 0.20.0 and the nginx exporter 1.5.3.
You first learn how to prepare your lab on Windows, Mac or Linux and how to ask Claude, ChatGPT or Gemini for commands, scripts and sample files, and how to check what the AI answers. You then learn what monitoring is and how metrics, labels and the pull model work. Then you install Prometheus, run it as a service and read its configuration file, web page and HTTP API. You add node_exporter and more targets, and you learn PromQL, the query language, in five lectures, including rate(), aggregation and histograms. Next come labels and relabeling, recording rules and alerting rules, and Alertmanager with routing, inhibition and silences. You also use the blackbox exporter for web checks, the textfile collector, the Pushgateway and a small exporter of your own written in Python.
Then you install Grafana, connect it to Prometheus, import a ready dashboard, build your own dashboard with variables, set up Grafana alerting, and manage users, roles and API tokens. In the last part you monitor MariaDB, nginx and Apache, put load on the system and on the web and database servers and watch the graphs and alerts react, add a Debian server, secure Prometheus and Grafana with passwords and TLS, and practise retention, snapshot backup and restore.
What is included: about 118 minutes (1 hour 58 minutes) of video training in 38 short lectures. The first lecture is the welcome, the second shows how to prepare your lab and use AI for help, the third prepares your servers, and the last is the outro with next steps; the other lectures are hands-on labs, each with real commands, real results and Prometheus or Grafana screens.
Please note: the steps on your own computer, such as connecting with SSH from Windows or Mac and opening the web pages in your browser, are shown but were not tested on every system. All server steps were run for real on Rocky Linux, Ubuntu and Debian.
This course contains the use of artificial intelligence.
Curriculum Outline
Module 1: Start
Welcome: what monitoring is and what you will build
Prepare your lab and use AI for help
Lab setup: servers, SSH, tools, time sync
Module 2: Concepts
Metrics, labels and the pull model
Module 3: Prometheus
Install Prometheus from the official release
Run Prometheus as a systemd service
Anatomy of prometheus.yml
The web UI, targets page and HTTP API
Module 4: Exporters and targets
node_exporter: install and first scrape
Several targets: static and file_sd
Module 5: PromQL
PromQL 1: selectors and label matchers
PromQL 2: range vectors, counters and rate()
PromQL 3: aggregation
PromQL 4: the queries every dashboard needs
Histograms and histogram_quantile
Module 6: Labels and rules
Labels and relabeling
Recording rules
Alerting rules and promtool tests
Module 7: Alerting
Alertmanager and a real notification
Routing, inhibition and silences
Module 8: More exporters
Blackbox exporter: HTTP, TCP and ping
Monitor another service: Apache
Custom metrics: textfile collector
Pushgateway and your own Python exporter
Module 9: Grafana
Install Grafana from the official repository
Data sources: provisioning file and API
Import a dashboard and provision dashboards
Build a dashboard with variables
Grafana alerting
Users, roles, folders and API tokens
Module 10: Services and load
Monitor a database: MariaDB and mysqld_exporter
Monitor a web server: nginx and its exporter
Put load on the system and watch it
Put load on web and database and watch it
Monitor a third Linux server: Debian 12
Module 11: Security and operations
Secure Prometheus and Grafana
Retention, snapshot backup and restore, final check
Outro and next steps