Monitoring and Prometheus

Monitoring is the system's eyes. Metrics tell you that something is wrong and when it started; logs and traces tell you why and where. The professional goal is simple: learn about an incident before your users tweet about it.

The three pillars of observability

Metrics are numbers over time — Prometheus scrapes them, PromQL queries them, alerts fire on them. Logs are discrete events — searchable with LogQL in Loki. Traces follow a request across services. Together they answer: what happened, why, and where.

Alerting without fatigue

Alert on symptoms users feel, not on every internal cause. Alertmanager groups and routes notifications. Every alert earns a readable name and a link to a runbook — an alert nobody can act on is just noise.

Investigating an incident

Metrics first, to frame the time window and the blast radius. Then logs of the affected pods. Then traces, if the request crosses services. The course walks through a real incident on a training cluster using exactly this order.

What this block covers

  1. Metrics and the PromQL language
  2. Alerts and Alertmanager
  3. Logs and LogQL
  4. Traces and dashboards

Practice it in the trainer

Professions and courses are structured differently because they teach different things. They share one principle: every concept must be tried, not just read about. In the DevOps engineer profession, practice takes place in a terminal on real machines; in the business courses, it uses diagrams, trainers, spreadsheet templates and simulators of company departments where an AI acts as the facilitator.

Frequently asked questions

How is Prometheus different from logs?

Metrics are cheap numbers for trends and alerts; logs are detailed events for investigation.

Is Grafana mandatory?

No — Grafana is a convenient visualization layer over Prometheus. It is replaceable, but it is the de-facto standard.