Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Prometheus and Grafana Monitoring for Beginners (Linux) LAB!
New
Rating: 4.9 out of 5(14 ratings)
115 students

Prometheus and Grafana Monitoring for Beginners (Linux) LAB!

Learn Cloud Monitoring with Prometheus and Grafana: real labs on Rocky Linux, Ubuntu and Debian, from metrics to alerts
Last updated 10/2026
English
English [Auto],

What you'll learn

  • Prepare your own lab, find the right commands and use AI assistants (Claude, ChatGPT, Gemini) safely, and check their answers
  • Explain metrics, labels and the pull model, then install Prometheus 3.15.0 from the official release and run it as a systemd service
  • Collect data from Linux servers with node_exporter and the blackbox exporter, and add targets with file_sd
  • Write PromQL queries with selectors, rate(), aggregation and histogram_quantile for CPU, memory and disk
  • Create recording rules and alerting rules, and test them with promtool
  • Set up Alertmanager with routes, inhibition and silences, and receive a real notification
  • Install Grafana 13.2.4, add Prometheus as a data source, import dashboards and build your own with variables
  • Monitor MariaDB, nginx and Apache, watch a system under load, and secure and back up Prometheus and Grafana
  • Prometheus and Grafana Monitoring for Beginners (Linux)
  • Prometheus + Grafana: Monitor Linux Servers Step by Step
  • Cloud Monitoring with Prometheus and Grafana: Hands-On Labs
  • Prometheus, Alertmanager and Grafana for Beginners

Course content

1 section • 39 lectures • 1h 58m total length
  • L01_welcome_what_monitoring_is_and_what_you_will_build2:51
  • L02_prepare_your_lab_and_use_ai_for_help3:30
  • L03_lab_setup_servers_ssh_tools_time_sync2:59
  • L04_metrics_labels_and_the_pull_model2:48
  • L05_install_prometheus_from_the_official_release3:00
  • L06_run_prometheus_as_a_systemd_service2:51
  • L07_anatomy_of_prometheus_yml3:06
  • L08_the_web_ui_targets_page_and_http_api3:01
  • L09_node_exporter_install_and_first_scrape2:56
  • L10_several_targets_static_and_file_sd3:01
  • L11_promql_1_selectors_and_label_matchers3:07
  • L12_promql_2_range_vectors_counters_and_rate2:44
  • L13_promql_3_aggregation2:53
  • L14_promql_4_the_queries_every_dashboard_needs3:10
  • L15_histograms_and_histogram_quantile3:02
  • L16_labels_and_relabeling2:55
  • L17_recording_rules3:01
  • L18_alerting_rules_and_promtool_tests2:59
  • L19_alertmanager_and_a_real_notification3:22
  • L20_routing_inhibition_and_silences3:08
  • L21_blackbox_exporter_http_tcp_and_ping3:21
  • L22_monitor_another_service_apache3:11
  • L23_custom_metrics_textfile_collector2:50
  • L24_pushgateway_and_your_own_python_exporter3:05
  • L25_install_grafana_from_the_official_repository3:03
  • L26_data_sources_provisioning_file_and_api3:02
  • L27_import_a_dashboard_and_provision_dashboards3:14
  • L28_build_a_dashboard_with_variables2:56
  • L29_grafana_alerting3:08
  • L30_users_roles_folders_and_api_tokens2:54
  • L31_monitor_a_database_mariadb_and_mysqld_exporter3:26
  • L32_monitor_a_web_server_nginx_and_its_exporter3:26
  • L33_put_load_on_the_system_and_watch_it3:47
  • L34_put_load_on_web_and_database_and_watch_it3:39
  • L35_monitor_a_third_linux_server_debian_123:13
  • L36_secure_prometheus_and_grafana3:35
  • L37_retention_snapshot_backup_and_restore_final_check3:07
  • L38_outro_and_next_steps2:57
  • Prometheus and Grafana Monitoring for Beginners (Linux) LAB!0:02

Requirements

  • A computer with internet access, and an SSH client (Windows PowerShell, Mac Terminal or any Linux terminal)
  • Two Linux servers you can log in to as root: cheap cloud servers, or virtual machines on your own computer, running Rocky Linux 9 and Ubuntu 24.04 (a third server with Debian 12 is used in one lab)
  • Willingness to prepare a lab: the course shows how to build one on Windows, Mac or Linux with VirtualBox, VMware, Hyper-V, KVM, UTM or a cloud, and how to use AI assistants safely for help
  • No monitoring experience needed: if you can type a command on a Linux server, you can follow every lecture

Description


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

  1. Welcome: what monitoring is and what you will build

  2. Prepare your lab and use AI for help

  3. Lab setup: servers, SSH, tools, time sync

Module 2: Concepts

  1. Metrics, labels and the pull model

Module 3: Prometheus

  1. Install Prometheus from the official release

  2. Run Prometheus as a systemd service

  3. Anatomy of prometheus.yml

  4. The web UI, targets page and HTTP API

Module 4: Exporters and targets

  1. node_exporter: install and first scrape

  2. Several targets: static and file_sd

Module 5: PromQL

  1. PromQL 1: selectors and label matchers

  2. PromQL 2: range vectors, counters and rate()

  3. PromQL 3: aggregation

  4. PromQL 4: the queries every dashboard needs

  5. Histograms and histogram_quantile

Module 6: Labels and rules

  1. Labels and relabeling

  2. Recording rules

  3. Alerting rules and promtool tests

Module 7: Alerting

  1. Alertmanager and a real notification

  2. Routing, inhibition and silences

Module 8: More exporters

  1. Blackbox exporter: HTTP, TCP and ping

  2. Monitor another service: Apache

  3. Custom metrics: textfile collector

  4. Pushgateway and your own Python exporter

Module 9: Grafana

  1. Install Grafana from the official repository

  2. Data sources: provisioning file and API

  3. Import a dashboard and provision dashboards

  4. Build a dashboard with variables

  5. Grafana alerting

  6. Users, roles, folders and API tokens

Module 10: Services and load

  1. Monitor a database: MariaDB and mysqld_exporter

  2. Monitor a web server: nginx and its exporter

  3. Put load on the system and watch it

  4. Put load on web and database and watch it

  5. Monitor a third Linux server: Debian 12

Module 11: Security and operations

  1. Secure Prometheus and Grafana

  2. Retention, snapshot backup and restore, final check

  3. Outro and next steps



Who this course is for:

  • Beginners who want to learn monitoring with Prometheus and Grafana step by step
  • Linux and IT beginners who want practical, hands-on skills for watching their servers
  • Students and junior system administrators who work with Rocky Linux, Ubuntu or Debian
  • Developers who want graphs and alerts for their own servers and services