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.

#ScriptDescriptionLink
1Disk Health CheckStrict-mode (set -euo pipefail) filesystem threshold alert script.View
2HTTP Retry ProbePython health-check client using exponential backoff, jitter, and timeouts.View
3Log Triage PipelineAccess-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.

#ScriptDescriptionLink
4Service PreflightLockfile protection via trap EXIT, dependency checks, and DRY_RUN mode.View
5SLO Burn RatePython calculator for 30-day error budgets and multi-window burn rates.View
6Alert Rule PayloadPrometheus-style multi-window burn-rate alert rule with runbook annotations.View