TechOps Demo Examples
Small, self-contained operational scripts and alert definitions used across the TechOps roadmap. Click View to inspect any file in the code viewer.
For SRE books, shell linters, and observability documentation, see References.
Phase 1: Ops Foundations & Shell Automation
Strict-mode Bash scripts and Python network probes for repeatable host checks and log triage.
| # | Script | Description | Link |
|---|---|---|---|
| 1 | Disk Health Check | Strict-mode (set -euo pipefail) filesystem threshold alert script. | View |
| 2 | HTTP Retry Probe | Python health-check client using exponential backoff, jitter, and timeouts. | View |
| 3 | Log Triage Pipeline | Access-log status breakdown and top 5xx endpoint summary using awk/sort/uniq. | View |
Phases 2–3: Delivery & Reliability Engineering
Idempotent pre-flight checks, SLO error-budget math, and structured burn-rate alerts.
| # | Script | Description | Link |
|---|---|---|---|
| 4 | Service Preflight | Lockfile protection via trap EXIT, dependency checks, and DRY_RUN mode. | View |
| 5 | SLO Burn Rate | Python calculator for 30-day error budgets and multi-window burn rates. | View |
| 6 | Alert Rule Payload | Prometheus-style multi-window burn-rate alert rule with runbook annotations. | View |