Observability - Monitoring, Metrics & Logs

Status: Active
Last Updated: 2026-08-26 Category: Monitoring & Observability
Prerequisites: kb/basics/, kb/containers/docker-basics
Tags: monitoring, metrics, logs, observability, prometheus, grafana, loki, netdata, self-hosted

Summary

Complete observability stack learning path using self-hosted open-source tools. From simple uptime monitoring through complete Prometheus + Grafana + Loki stacks for production infrastructure. Updated for Prometheus 2.53+, Grafana 11+, Loki 3.0+ with current best practices.

๐ŸŽฏ Learning Philosophy

See Everything, Understand Everything:

Uptime โ†’ Metrics โ†’ Logs โ†’ Traces โ†’ Alerts โ†’ Dashboards
(Alive?)  (Health)  (What)  (Why)    (Know)    (Visualize)

This directory teaches observability assuming running services but no prior monitoring experience. Progressive implementation from basic checks through comprehensive production observability.

๐Ÿ“š Learning Path

Prerequisites: Running services to monitor
         โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  PHASE 1: Basic Monitoring             โ”‚
โ”‚  โ”œโ”€ Why monitor?                       โ”‚
โ”‚  โ”œโ”€ Uptime checks (Uptime Kuma)        โ”‚
โ”‚  โ”œโ”€ Simple metrics (Netdata)           โ”‚
โ”‚  โ”œโ”€ Alert basics                       โ”‚
โ”‚  โ””โ”€ Monitoring mindset                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  PHASE 2: Metrics Collection           โ”‚
โ”‚  โ”œโ”€ Prometheus fundamentals            โ”‚
โ”‚  โ”œโ”€ Node Exporter (system metrics)     โ”‚
โ”‚  โ”œโ”€ Container metrics (cAdvisor)       โ”‚
โ”‚  โ”œโ”€ Application metrics                โ”‚
โ”‚  โ””โ”€ Service discovery                  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  PHASE 3: Visualization                โ”‚
โ”‚  โ”œโ”€ Grafana setup                      โ”‚
โ”‚  โ”œโ”€ Dashboard creation                 โ”‚
โ”‚  โ”œโ”€ Pre-built dashboards               โ”‚
โ”‚  โ”œโ”€ Custom queries (PromQL)            โ”‚
โ”‚  โ””โ”€ Variables and templating           โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  PHASE 4: Logging                      โ”‚
โ”‚  โ”œโ”€ Centralized logging why            โ”‚
โ”‚  โ”œโ”€ Loki setup                         โ”‚
โ”‚  โ”œโ”€ Promtail for log shipping          โ”‚
โ”‚  โ”œโ”€ LogQL queries                      โ”‚
โ”‚  โ””โ”€ Log aggregation patterns           โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  PHASE 5: Advanced & Production        โ”‚
โ”‚  โ”œโ”€ Distributed tracing (Jaeger)       โ”‚
โ”‚  โ”œโ”€ Alertmanager configuration         โ”‚
โ”‚  โ”œโ”€ On-call workflows                  โ”‚
โ”‚  โ”œโ”€ SLOs and SLIs                      โ”‚
โ”‚  โ””โ”€ Observability-driven development   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“– Articles in This Directory

โœ… Recently Created (2026-08-26 headless-browser research session)

๐ŸŸข Phase 1: Basic Monitoring (Start Here)

Simple is Beautiful:

  1. why-monitor - The importance of observability

    • What can go wrong
    • MTTR vs MTTD
    • Unknown unknowns
    • When to monitor
    • Prerequisites: None
    • Time: 30 minutes
    • Resources: [โ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] 10% - Conceptual
  2. uptime-kuma-setup - Beautiful uptime monitoring

    • Uptime Kuma installation
    • HTTP checks
    • TCP checks
    • Docker health monitoring
    • Status pages
    • Prerequisites: Docker basics
    • Time: 1-2 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] 30%
  3. netdata-basics - Real-time system monitoring

    • Netdata installation
    • System metrics dashboard
    • Container monitoring
    • Zero-config setup
    • Alert configuration
    • Prerequisites: Linux basics
    • Time: 1-2 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] 30%
  4. simple-alerts - Get notified when things break

    • Email alerts
    • Slack/Discord webhooks
    • Telegram notifications
    • Alert fatigue prevention
    • Prerequisites: Monitoring setup
    • Time: 2 hours
    • Resources: [โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] 20%

๐ŸŸก Phase 2: Metrics Collection (The Foundation)

  1. prometheus-introduction - Metrics database

    • What is Prometheus
    • Pull vs Push metrics
    • Time series data
    • PromQL basics
    • Architecture overview
    • Prerequisites: Monitoring concepts
    • Time: 2 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] 30%
  2. prometheus-installation - Setting up Prometheus

    • Docker compose deployment
    • Configuration file
    • Scrape configs
    • Storage retention
    • Data persistence
    • Prerequisites: Docker basics
    • Time: 2-3 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘] 50% - 2GB RAM
  3. node-exporter - System metrics collection

    • Node Exporter setup
    • CPU, memory, disk metrics
    • Network statistics
    • Custom text file metrics
    • Prerequisites: Prometheus running
    • Time: 1-2 hours
    • Resources: [โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] 20%
  4. exporters-catalog - Exporter ecosystem

    • PostgreSQL exporter
    • Redis exporter
    • Nginx exporter
    • Blackbox exporter
    • Custom exporters
    • Prerequisites: Prometheus basics
    • Time: 3-4 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] 40%
  5. service-discovery - Auto-discover targets

    • File-based discovery
    • DNS service discovery
    • Docker service discovery
    • Kubernetes service discovery
    • Prerequisites: Prometheus proficiency
    • Time: 2-3 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘] 50%

๐ŸŸ  Phase 3: Visualization (Making Sense of Data)

  1. grafana-setup - Beautiful dashboards

    • Grafana installation
    • First login and config
    • Adding Prometheus datasource
    • User management
    • Prerequisites: Prometheus running
    • Time: 1-2 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] 40% - 1GB RAM
  2. first-dashboard - Creating dashboards

    • Dashboard basics
    • Panel types
    • Query builder
    • Visualization options
    • Dashboard variables
    • Prerequisites: Grafana installed
    • Time: 2-3 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] 40%
  3. promql-queries - Prometheus query language

    • PromQL syntax
    • Selectors and matchers
    • Functions and operators
    • Rate calculations
    • Aggregations
    • Prerequisites: Prometheus basics
    • Time: 4-5 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘] 60%
  4. dashboard-library - Pre-built dashboards

    • Grafana dashboard marketplace
    • Node Exporter dashboard
    • Docker monitoring
    • k8s monitoring
    • Customizing imports
    • Prerequisites: Grafana basics
    • Time: 2 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] 30%
  5. dashboard-best-practices - Design principles

    • Dashboard hierarchy
    • Signal vs noise
    • Color conventions
    • Annotations
    • Sharing dashboards
    • Prerequisites: Dashboard experience
    • Time: 2 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] 40%

๐Ÿ”ด Phase 4: Logging (Centralized Log Management)

  1. loki-introduction - Like Prometheus, for logs

    • What is Loki
    • Log aggregation architecture
    • Labels vs full-text search
    • Cost-effective logging
    • Prerequisites: Prometheus understanding
    • Time: 1-2 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] 30%
  2. loki-setup - Installing Loki stack

    • Loki installation
    • Storage configuration
    • Retention policies
    • High availability
    • Prerequisites: Docker basics
    • Time: 2-3 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘] 60% - 2-4GB RAM
  3. promtail-setup - Shipping logs to Loki

    • Promtail agent installation
    • Log file discovery
    • Label extraction
    • Pipeline stages
    • Docker/k8s integration
    • Prerequisites: Loki running
    • Time: 2-3 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] 30%
  4. logql-queries - Querying logs

    • LogQL syntax
    • Stream selectors
    • Log pipeline
    • Metric queries from logs
    • Real-world examples
    • Prerequisites: Loki + Promtail
    • Time: 3-4 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘] 50%
  5. log-aggregation-patterns - Production logging

    • Structured logging
    • JSON logs
    • Correlation IDs
    • Log levels
    • Performance considerations
    • Prerequisites: Logging experience
    • Time: 3 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘] 60%

โšซ Phase 5: Advanced & Production (Complete Observability)

  1. alertmanager-setup - Alert routing

    • Alertmanager installation
    • Alert rules in Prometheus
    • Routing trees
    • Silences and inhibitions
    • Integration with ticketing
    • Prerequisites: Prometheus proficiency
    • Time: 3-4 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘] 50%
  2. on-call-workflows - Incident response

    • On-call best practices
    • Alert escalation
    • PagerDuty alternatives (open-source)
    • Runbooks and playbooks
    • Post-mortems
    • Prerequisites: Production experience
    • Time: 2-3 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] 40% - Conceptual
  3. distributed-tracing - Jaeger setup

    • What is distributed tracing
    • Jaeger installation
    • Instrumenting applications
    • Trace analysis
    • Prerequisites: Microservices
    • Time: 4-5 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘] 70%
  4. slos-and-slis - Service level objectives

    • SLIs, SLOs, SLAs explained
    • Defining objectives
    • Error budgets
    • Measuring reliability
    • Prerequisites: Production monitoring
    • Time: 2-3 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘] 50% - Conceptual
  5. observability-driven-development - Build observability in

    • Instrumentation from day 1
    • Metrics in code
    • Structured logging
    • Tracing spans
    • Testing observability
    • Prerequisites: Development experience
    • Time: 3-4 hours
    • Resources: [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘] 60%

๐Ÿ”— What Comes Next?

After mastering observability:

For Infrastructure:

For Containers:

For CI/CD:

For Security:

๐Ÿ“Š Resource Requirements

Uptime Kuma:

Netdata:

Prometheus (v2.53+ current stable as of 2025):

Grafana (v11+ current stable as of 2025):

Loki Stack (v3.0+ current stable as of 2025):

Complete Stack (Prom + Grafana + Loki):

Learning Time Investment:

๐Ÿ› ๏ธ Recommended Tool Stack

Monitoring Stack (The Big 3):

Supporting Tools:

Exporters (Essential):

Alternatives:

๐Ÿ’ก Pro Tips for Observability

  1. Start Simple: Uptime first, metrics second, logs third
  2. Monitor What Matters: Not everything needs monitoring
  3. Alert on Symptoms: Not causes - user impact first
  4. Reduce Alert Fatigue: If it doesn't need action, don't alert
  5. Use Labels Wisely: Cardinality explosion kills Prometheus
  6. Dashboard Hierarchy: Overview โ†’ Service โ†’ Details
  7. Document Dashboards: What each panel means
  8. Test Alerts: Trigger them intentionally
  9. Practice Runbooks: Step-by-step response procedures
  10. Continuous Improvement: Review alerts monthly

๐Ÿ”„ Common Observability Pitfalls

Pitfall 1: Monitoring Everything

Pitfall 2: Alert Spam

Pitfall 3: No Baselines

Pitfall 4: Dashboards Without Context

Pitfall 5: Ignoring Logs

Pitfall 6: No Retention Policy

Pitfall 7: Single Point of Failure

Pitfall 8: Not Testing Monitoring

๐Ÿ”— Related KB Sections

๐Ÿ“ Change Log

2026-01-30

2026-08-15

Change Log

Choose Theme

Your selection is saved locally.

Neural Cacophony
Aperture v2
Flux v1
Mosaic Chaos
Nexus v1
Nexus Zest
Prism v2
Synapse