ObservabilityAdvanced8 submodules

Prometheus Monitoring and Alerting

Collect time-series metrics from applications and infrastructure using Prometheus exporters, scraping, PromQL, recording and alert rules, and Alertmanager routing.

From concept to production evidence

Expose bounded-cardinality metrics, discover targets, scrape at a purposeful interval, write queries around service behavior, alert on sustained user impact, and route notifications with inhibition and ownership.

Learning outcomes

  • Explain Prometheus data and pull architecture
  • Use exporters and scrape configuration
  • Write PromQL
  • Create alert rules
  • Route and group alerts with Alertmanager
  • Monitor Kubernetes

Prometheus Monitoring and Alerting end-to-end flow

Use this sequence as the operating backbone for every submodule note and hands-on exercise.

  1. 01
    Expose metricPrometheus Monitoring and Alerting stage 1: expose metric with an auditable result before the next stage begins.
  2. 02
    Discover targetPrometheus Monitoring and Alerting stage 2: discover target with an auditable result before the next stage begins.
  3. 03
    Scrape samplePrometheus Monitoring and Alerting stage 3: scrape sample with an auditable result before the next stage begins.
  4. 04
    Store time seriesPrometheus Monitoring and Alerting stage 4: store time series with an auditable result before the next stage begins.
  5. 05
    Query with PromQLPrometheus Monitoring and Alerting stage 5: query with promql with an auditable result before the next stage begins.
  6. 06
    Evaluate and route alertPrometheus Monitoring and Alerting stage 6: evaluate and route alert with an auditable result before the next stage begins.

Monitor a Kubernetes service with Prometheus

  1. Expose application metrics
  2. Configure discovery or ServiceMonitor
  3. Write rate and percentile queries
  4. Create alert rule
  5. Configure Alertmanager route and silence

8 full submodule notes

Read in order
01

Prometheus architecture

Prometheus architecture turns service behavior into evidence that supports detection, diagnosis, capacity decisions, and measurable reliability within Prometheus Monitoring and Alerting. It is not an isolated definition: its value appears when it supports expose bounded-cardinality metrics, discover targets, scrape at a purposeful interval, write queries around service behavior, alert on sustained user impact, and route notifications with inhibition and ownership.

Open full notes
02

Metrics

Metrics turns service behavior into evidence that supports detection, diagnosis, capacity decisions, and measurable reliability within Prometheus Monitoring and Alerting. It is not an isolated definition: its value appears when it supports expose bounded-cardinality metrics, discover targets, scrape at a purposeful interval, write queries around service behavior, alert on sustained user impact, and route notifications with inhibition and ownership.

Open full notes
03

Exporters

Exporters governs how a request is named, addressed, routed, filtered, transported, protected, and delivered to a healthy endpoint within Prometheus Monitoring and Alerting. It is not an isolated definition: its value appears when it supports expose bounded-cardinality metrics, discover targets, scrape at a purposeful interval, write queries around service behavior, alert on sustained user impact, and route notifications with inhibition and ownership.

Open full notes
04

Scraping

Scraping turns a manual or repeated decision into versioned, parameterized, testable, and observable execution within Prometheus Monitoring and Alerting. It is not an isolated definition: its value appears when it supports expose bounded-cardinality metrics, discover targets, scrape at a purposeful interval, write queries around service behavior, alert on sustained user impact, and route notifications with inhibition and ownership.

Open full notes
05

PromQL

PromQL turns service behavior into evidence that supports detection, diagnosis, capacity decisions, and measurable reliability within Prometheus Monitoring and Alerting. It is not an isolated definition: its value appears when it supports expose bounded-cardinality metrics, discover targets, scrape at a purposeful interval, write queries around service behavior, alert on sustained user impact, and route notifications with inhibition and ownership.

Open full notes
06

Alert rules

Alert rules turns service behavior into evidence that supports detection, diagnosis, capacity decisions, and measurable reliability within Prometheus Monitoring and Alerting. It is not an isolated definition: its value appears when it supports expose bounded-cardinality metrics, discover targets, scrape at a purposeful interval, write queries around service behavior, alert on sustained user impact, and route notifications with inhibition and ownership.

Open full notes
07

Alertmanager

Alertmanager turns service behavior into evidence that supports detection, diagnosis, capacity decisions, and measurable reliability within Prometheus Monitoring and Alerting. It is not an isolated definition: its value appears when it supports expose bounded-cardinality metrics, discover targets, scrape at a purposeful interval, write queries around service behavior, alert on sustained user impact, and route notifications with inhibition and ownership.

Open full notes
08

Kubernetes monitoring

Kubernetes monitoring turns service behavior into evidence that supports detection, diagnosis, capacity decisions, and measurable reliability within Prometheus Monitoring and Alerting. It is not an isolated definition: its value appears when it supports expose bounded-cardinality metrics, discover targets, scrape at a purposeful interval, write queries around service behavior, alert on sustained user impact, and route notifications with inhibition and ownership.

Open full notes