StackPractices

Tag: monitoring

Browse 28 practical software engineering resources tagged with "monitoring". Discover code recipes, design patterns, documentation templates, and in-depth guides to help you build, deploy, and maintain production-ready solutions involving monitoring. Each resource is written for engineers who ship real systems, with copy-paste examples and practical trade-offs.

Monitoring and Alerting

Monitoring is the practice of collecting metrics, logs, and traces to understand system health. Good alerting tells you when something is wrong without flooding you with noise.

The resources in this collection cover metric collection, dashboards, SLOs, error budgets, alert thresholds, and on-call workflows. Each guide focuses on building signal-rich, noise-poor observability for production services.

Every resource includes clear explanations, copy-paste code, and practical warnings. Use them to make informed decisions, avoid production pitfalls, and speed up your delivery. If you are just getting started, read the beginner-friendly articles first; if you are experienced, jump straight to the advanced patterns and architecture guides. New resources are added regularly, so bookmark this page and check back for the latest patterns.

Monitor Disk Usage with Bash

Alert when disk space crosses thresholds with bash scripts

Docker Health Check Configuration for Container Reliability

Add proper health checks to Docker containers with HEALTHCHECK

Grafana Dashboards for Observability with Prometheus

Build Grafana dashboards that visualize Prometheus metrics. Use panels, template variables,...

Metrics Collection and Alerting with Prometheus

Instrument applications and infrastructure with Prometheus metrics, configure alerting rules, and...

Expose Custom Application Metrics with Python and Prometheus

Build a custom Prometheus metrics exporter in Python using prometheus_client. Covers counters,...

Monitor Disk Usage

Alert when disk space crosses thresholds using a Bash script that checks mount points and notifies...

Distributed Tracing

Trace requests across distributed microservices with OpenTelemetry, Jaeger, and Zipkin for latency...

Log Aggregation

Centralize logs from distributed services with ELK, Fluentd, and Loki for search, alerting, and...

Metrics Collection

Collect, aggregate, and expose application and infrastructure metrics with Prometheus, StatsD, and...

Prometheus API Monitoring

Monitor API performance and health with Prometheus metrics, custom collectors, and alerting rules.

Real User Monitoring

Monitor actual user experiences with Core Web Vitals, session replay, and performance analytics to...

Structured Logging

Implement structured logging with JSON output, correlation IDs, and log aggregation for production...

Health Endpoint Monitoring Pattern

Expose lightweight health endpoints so orchestrators, load balancers, and monitoring tools can...

API Monitoring & Alerting Template

A template for defining API SLA thresholds, error rate alerts, and monitoring dashboards.

Logging Standards Document

A document template for defining structured logging conventions, log levels, retention, and...

Monitoring and Alerting Policy Template

A policy template that defines how alerts are configured, routed, escalated, and reviewed across...

Production Readiness Review Template

A thorough checklist for verifying that a service, feature, or system is ready for production...

Service Level Objective (SLO) Template

A template for defining reliability targets, error budgets, and measurement methods for services...

Dashboard Design Template

A template for designing observability dashboards with SLOs, error budgets, service health, and...

Performance Budget Template

Template for defining and enforcing web performance budgets: LCP, INP, CLS targets, resource...