1. Understand the Goal: The user wants a "production readiness checklist" broken down per service. The checklist needs to cover four specific areas: SLOs (Service Level Objectives), Runbooks, Dashboards, and Alerts. The tone should be professional, actionable, and comprehensive, likely intended for Engineering Managers, SREs, or DevOps engineers.
-
Identify the Structure:
- I need to organize the checklist by the requested categories (SLOs, Runbooks, Dashboards, Alerts).
- I should also add a "General/Foundational" section because a service can't be production-ready without basic things like CI/CD, logging, and deployment strategies.
- The checklist items need to be specific questions or requirements, not vague statements.
-
Drafting Section by Section:
-
Introduction: Briefly explain why this matters (standardizing quality, reducing toil).
-
Section 1: SLOs (Service Level Objectives): This is the core of reliability.
- Concept: SLOs define the target reliability.
- Checklist items:
- SLIs defined (Latency, Availability, Errors, Saturation - RED/USE methods).
- Error Budget defined (how much unreliability is allowed?).
- Stakeholder agreement (Product Manager agrees).
- Monitoring implementation (are we measuring the SLI correctly?).
-
Section 2: Dashboards (Observability): How do we see the SLOs?
- Concept: A single pane of glass.
- Checklist items:
- High-level overview (traffic lights).
- Detailed view (RED metrics).
- Business logic (signups, checkouts).
- Dependencies (DBs, external APIs).
- Differentiation (Dev vs. Prod).
-
Section 3: Alerts (Response): When do we wake people up?
- Concept: Actionable signals.
- Checklist items:
- SLO-based alerting (burn rate alerts are best practice).
- Severity levels (P1 vs P4).
- Routing (who gets the page? OpsGenie/PagerDuty integration).
- Noise reduction (no alert fatigue).
- Notification channels (Slack vs. SMS).
-
Section 4: Runbooks (Resolution): What do we do when the alert fires?
- Concept: The manual for the service.
- Checklist items:
- Location (accessible, linked in alerts).
- Common failure modes (what usually breaks?).
- Diagnosis steps.
- Remediation steps.
- Escalation path (who is the SME?).
- Disaster Recovery (Backup/Restore).
-
Section 5: General / Infrastructure (Foundational): (Self-correction: The prompt asked specifically for the four items, but a "production readiness" review usually implies infrastructure too. I will add this as a "Prerequisites" or "Bonus" section to make the answer more complete, but keep the focus on the requested four).
-
Refining the Content:
- Terminology: Use standard terms like SLI, SLO, SLA, RED (Rate, Errors, Duration), USE (Utilization, Saturation, Errors).
- Formatting: Use Markdown tables or bulleted lists for readability. A table might be cleaner for a "checklist" format, but headers with bullet points are easier to copy-paste into a doc. I'll use headers and bullet points.
- Actionability: Phrases like "Is there a..." or "Has the team..." are good.
-
Review against constraints:
- Per Service: Yes, the checklist applies to a single microservice or monolithic module.
- SLOs: Covered.
- Runbooks: Covered.
- Dashboards: Covered.
- Alerts: Covered.
-
Polishing the output:
- Add a section on how to use this (e.g., a gate in the CI/CD pipeline or a PR review).
- Create a "Service Template" structure to make it concrete.
-
Final Output Generation: (This aligns with the provided good response).
- Structure:
- Introduction.
- Prerequisites (brief).
- The Core Checklist (broken down by the 4 requested areas).
- Best Practices/Tips.
(Self-Correction during drafting): Make sure to distinguish between "Latency" (speed) and "Availability" (uptime) in the SLO section. Ensure "Burn Rate" is mentioned for alerts as it's the modern standard.
-
Final Polish: Ensure the distinction between "Dashboards" (Visualization) and "Alerts" (Notification) is clear. Dashboards are for debugging; Alerts are for waking people up.
(Let's assemble the response).
This checklist is designed to be used as a "Go/No-Go" gate for any service migrating to production. It focuses on the Operability aspects of the service, ensuring that once it is live, it can be managed, measured, and maintained effectively.
Here is the Production Readiness Checklist per service.
1. Service Level Objectives (SLOs)
The contract between the service and its users. If this isn't defined, you don't know if the system is "healthy."
| Checklist Item | Description / Requirement |
|---|
| SLI Definitions | Service Level Indicators are quantified. - Latency: (e.g., 99th percentile request duration). - Availability: (e.g., Proportion of successful requests). - Throughput: (e.g., Requests per second). |
| SLO Targets | Service Level Objectives have specific numeric targets. - Example: 99.9% of requests < 200ms over 30 days. - Example: 99.95% availability (2.6s downtime/week allowed). |
| Error Budget Policy | A documented policy exists for what happens when the SLO is breached (burn rate is too high). - Example: Freeze new feature releases; focus solely on reliability. |
| Dependency SLOs | The SLOs of downstream dependencies (databases, APIs) are faster than this service’s SLO. (You cannot guarantee 100ms latency if your DB takes 150ms). |
| Compliance Requirement | The SLOs are agreed upon by the Product Owner and the Engineering Team. |
2. Dashboards
The "at a glance" health monitor. Dashboards are for humans to identify patterns; alerts are for robots to wake humans up.
| Checklist Item | Description / Requirement |
|---|
| The "Golden Signals" | The main dashboard visualizes the four golden signals (Latency, Traffic, Errors, Saturation) for the service. |
| RED Method | Rate (Requests/sec), Errors (Failed req/sec), and Duration (Latency distribution) are plotted. |
| Business Logic | Dashboard includes high-level business metrics (e.g., "Active Users," "Orders Processed," "Cart Value") not just CPU/RAM. |
| Resource Saturation | Metrics on "How full" the system is (CPU %, Memory %, Disk I/O, Network Bandwidth, Open File Descriptors). |
| Dependency View | A panel showing the health of critical downstream dependencies (DB connections, cache hit rates, third-party API latency). |
| Correlation ID Tracing | Logs or traces in the dashboard allow linking a specific request ID to the metrics for debugging. |
3. Alerts
Triggered when the SLOs are threatened. Follow the "Page on Symptoms, Not Causes" philosophy.
| Checklist Item | Description / Requirement |
|---|
| Alerting on SLOs | Alerts are configured based on Error Budget Burn Rate. You are alerted if you are consuming your error budget too fast, not just on arbitrary thresholds. |
| Severity Levels | Alerts are categorized by Severity (e.g., P1, P2, P3). - P1: Immediate human intervention required (Wake up on-call). - P2: Handle during business hours. - P3: Ticket created for later review. |
| Actionable Messages | Alert payloads contain context: Service Name, Environment, Summary, and a direct link to the Runbook. |
| No Alert Fatigue | "Warning" alerts or flapping alerts are either silenced or routed to a ticket queue, not to pagers/phones. |
| Dead Man’s Switch | A heartbeat alert exists to notify if the monitoring system itself stops receiving data from the service. |
4. Runbooks
The instruction manual for when things break. If an alert fires and there is no runbook, the alert is invalid.
| Checklist Item | Description / Requirement |
|---|
| Linked in Alert | Every alert definition contains a direct URL link to the specific runbook entry for that alert. |
| Overview & Architecture | The runbook includes a high-level diagram of the service, its data flow, and critical dependencies. |
| Diagnostic Steps | Step-by-step commands for debugging. (e.g., "Check logs via kubectl logs...", "Verify DB connection string"). |
| Common Mitigations | "If X happens, do Y." (e.g., "If memory leaks, restart pod," "If DB locks, kill long-running query ID 123"). |
| Rollback Procedure | Instructions on how to revert the service to the previous stable version. |
| On-Call Escalation | Clear guidelines on who to contact if the on-call engineer cannot fix the issue (Secondary on-call, Subject Matter Expert, Vendor Support). |
Implementation Strategy (How to enforce this)
To make this effective, do not treat it as a document to be filed away. Implement it as a Production Readiness Review (PRR) process.
- The Gate: No code is deployed to the
prod environment unless the CI/CD pipeline verifies that the Grafana dashboard link exists and the PagerDuty alerting integration is active.
- The Template: Create a "Service Template" repository. When a team creates a new microservice, they copy this repo which includes:
- A skeleton
README.md (The Runbook).
- A Terraform/Terraform module to spin up a standard Dashboard and basic Alerts automatically.
- The Audit: Once a quarter, audit existing services to ensure their SLOs still match user expectations and that runbooks are up to date.