The user wants a "web vitals SLO charter."
This document needs to align three key components:
- Thresholds: What are the targets? (LCP, INP, CLS).
- Alerting: How do we know when things go wrong? (Error Budgets, Burn Rates).
- Retrospective Rituals: What do we do when things go wrong or right? (Post-mortems, reviews).
Target Audience/Context:
This is likely for a product engineering team or a platform team. It needs to be professional, structured, and actionable. It shouldn't just list numbers; it needs to explain the process around those numbers.
Key Concepts to Include:
- Core Web Vitals (CWV): LCP, INP (replacing FID), CLS. I must use INP as FID is deprecated/retired.
- SLO (Service Level Objective): The target percentage (e.g., 75% or 90% of loads must be under X).
- SLI (Service Level Indicator): The metric itself (p75, p95 values).
- Error Budget: The allowed amount of "bad" experiences.
- Burn Rate: How fast we are consuming that budget.
- Severities: Distinguishing between a minor dip and a major outage.
Drafting Structure:
- Header/Preamble: Purpose and Scope.
- Definitions (SLIs & SLOs): The specific numbers. I should define these based on industry standards (Google's recommendations) but allow room for customization (e.g., Mobile vs. Desktop).
- Error Budget Policy: What happens when the budget runs out?
- Alerting Strategy: How to detect issues without pager fatigue (Multi-window alerts).
- Rituals & Governance: Reviews, post-mortems, and continuous improvement.
Refining the Content:
-
The Metrics:
- LCP: < 2.5s is good. > 4.0s is bad.
- INP: < 200ms is good. > 500ms is bad. (Crucial update).
- CLS: < 0.1 is good. > 0.25 is bad.
- SLO Target: Usually, we aim for the "Good" threshold. A common SLO is "75% of sessions experience 'Good' CWV". Or "90% of sessions < 'Bad' threshold". Let's stick to the standard "Target: 75% of page loads meet 'Good' criteria" for a high bar, or a p75/p95 percentile approach. The most robust SLO approach is: Percentage of visits that are 'Good'. Let's use that.
-
Alerting:
- Simple threshold alerts (LCP > 4s) are noisy.
- Better: Burn rate alerts. E.g., "If we burn 2% of our monthly budget in 1 hour, alert."
-
Rituals:
- Weekly/Monthly reviews.
- Post-mortems specifically for performance regressions.
Self-Correction during drafting:
- Initial thought: Just list LCP/FID/CLS.
- Correction: FID is gone. Must emphasize INP (Interaction to Next Paint).
- Initial thought: Make the thresholds very strict.
- Correction: Make them realistic but aspirational. Offer a "Tiered" approach (e.g., Bronze/Silver/Gold) or just standard vs. stretch goals. Let's stick to a standard SLO structure for clarity.
Formatting:
Use Markdown with tables for readability. Clear headings. Bold text for emphasis.
Scenario: A fictional company "Streamline" or generic enough to apply to anyone. Let's keep it generic but concrete.
Steps:
- Define the Objectives (SLI/SLO).
- Define the Error Budget calculation.
- Define the Alerting logic (Burn rates).
- Define the Process (Rituals).
Let's write it out.
Drafting the "Charter" sections:
- Scope: Which pages? (Landing, Checkout, App).
- Metrics Table: LCP, INP, CLS.
- Alerting Table: Critical (High burn), Warning (Medium burn).
- Escalation: Who gets paged?
- Retro: What is the format?
(Self-Correction on Alerting): Web vitals are notoriously noisy. Real User Monitoring (RUM) data varies by network. Synthetic monitoring is more stable. I should mention that SLOs usually apply to RUM data, and alerts should be based on significant deviations or budget burn, not just a single user having a slow load.
Let's refine the "Error Budget Policy." If the budget is exhausted, do we freeze features? That's the classic SRE approach. It adds teeth to the charter.
Final Polish: Ensure tone is authoritative yet collaborative.
This charter establishes a formal agreement between Engineering, Product, and SRE teams regarding user experience quality. It defines the thresholds for "Good" user experience, the speed at which we respond to degradation, and the process for continuous improvement.
Web Vitals SLO Charter
Document Owner: Platform / SRE Team
Stakeholders: Product, Engineering Leads, Customer Support
Effective Date: [Date]
Review Cadence: Quarterly
1. Objectives & Scope
Goal: To quantify and maintain a high-quality user experience by stabilizing the rendering and interactivity of the [Application Name] web application.
Scope: This SLO applies to all production web traffic (Desktop and Mobile) measured via Real User Monitoring (RUM).
Core Metrics (SLIs)
We align with Google’s Core Web Vitals as our Service Level Indicators (SLIs):
- LCP (Largest Contentful Paint): Perceived load speed.
- INP (Interaction to Next Paint): Interactivity/responsiveness.
- CLS (Cumulative Layout Shift): Visual stability.
2. Thresholds & Targets (SLOs)
We define our targets based on the 75th percentile (p75) of all qualified sessions. This ensures we are optimizing for the majority of users rather than just the average, while filtering out extreme outliers caused by bad user connections.
| Metric | Threshold (Good) | SLO Target (Monthly) | Error Budget (Monthly) |
|---|
| LCP | ≤ 2.5 seconds | 95% of sessions | 5% of total sessions (approx. 36 hrs/mo) |
| INP | ≤ 200 milliseconds | 90% of sessions | 10% of total sessions (approx. 72 hrs/mo) |
| CLS | ≤ 0.1 score | 95% of sessions | 5% of total sessions (approx. 36 hrs/mo) |
Note: A "Session" is considered "Good" for a specific metric if 75% of the interactions within that session meet the threshold.
3. Alerting Strategy
To avoid "alert fatigue," we do not alert on instantaneous spikes. We alert on Burn Rate—how fast we are consuming our Error Budget.
Severity Levels
🔴 Critical (Page / Immediate Action)
- Trigger: We are burning the monthly budget 10x faster than normal.
- Logic: If sustained, we will exhaust the month's budget in < 3 days.
- Threshold Example: LCP > 4.0s sustained for > 15 minutes across > 10% of traffic.
- Action: Immediate response; halt deployment; invoke war room.
🟠 Warning (Ticket / Slack Notification)
- Trigger: We are burning the monthly budget 2x faster than normal.
- Logic: A worrying trend that requires investigation but not a wake-up call.
- Threshold Example: LCP > 2.5s sustained for > 1 hour across > 5% of traffic.
- Action: Create a JIRA ticket; investigate next business day.
🟢 Budget Exhaustion (Feature Freeze)
- Trigger: Error Budget for any metric reaches 0%.
- Action: Freeze on new feature releases for the affected platform (Mobile/Desktop) until budget is replenished (monthly reset) or performance is improved.
4. Rituals & Retrospectives
SLOs are useless without a feedback loop. The following rituals are mandated by this charter.
Weekly: Vital Signs Review (30 mins)
- Attendees: Tech Lead, Frontend Lead.
- Agenda: Review the "Warning" alerts from the past 7 days. Identify if recent code deployments caused regressions.
- Output: A list of quick-fix optimization tasks.
Monthly: Error Budget Review (1 hr)
- Attendees: Engineering Managers, Product Managers.
- Agenda:
- Calculate remaining budget.
- Did we breach the SLO? If yes, why?
- Product vs. Reliability trade-off discussion.
- Output: Decision on whether to prioritize performance tickets over new features for the upcoming sprint.
Quarterly: SLO Charter Amendment
- Attendees: Stakeholders.
- Agenda: Are our targets too easy? Too hard? Has the user behavior changed?
- Output: Updated thresholds for the next quarter.
5. Exclusion Criteria (Blameless)
When an SLO is missed, the post-mortem is blameless. Valid reasons for budget consumption include:
- Valid Exclusions: Third-party ad provider outages, DDoS attacks, documented maintenance windows.
- Invalid Exclusions: "User's internet was slow." (Our SLO targets p75 specifically to handle standard network variance; if our code relies on perfect fiber speeds, the code is the problem).
6. Sign-off
By signing below, the teams agree to prioritize reliability according to the thresholds defined above.
- Engineering Lead: ___________________
- Product Lead: ___________________
- SRE / Platform: ___________________