CloudflareGitlabZoneErrorRatioHigh
Table of Contents
[TOC]
Overview
Section titled “Overview”More than 5% of the requests to the public GitLab.com zone (gitlab.com and
staging.gitlab.com) received an HTTP 5xx response at the Cloudflare edge over the
last 5 minutes, for at least 2 minutes. The alert pages the on-call (severity: s2).
The threshold mirrors the SLA downtime-minute definition: 5% or more of requests failing in a minute. While the alert fires, GitLab.com accumulates SLA downtime minutes.
Treat a firing as a user-facing availability incident, even when it resolves within minutes. A burst of a few minutes clears the 5-minute window quickly, and it still counts towards the SLA.
Services
Section titled “Services”Verification
Section titled “Verification”-
Open the alert in Grafana.
-
Break the errors down by status code in the
mimir-gitlab-opsdatasource:sum by (zone, status) (rate(cloudflare_zone_requests_status{zone=~"gitlab.com|staging.gitlab.com", status=~"5.."}[5m]))
Troubleshooting
Section titled “Troubleshooting”- Declare an incident at severity 2.
- Read the status code breakdown:
- HTTP 502 or 504: the origin returns gateway errors. Check the web, API and Git service dashboards, then the Puma and Workhorse saturation panels.
- HTTP 503 with a jump in total requests: check the Cloudflare security events for an attack, and check whether origin request rates dropped at the same time.
- HTTP 52x: Cloudflare cannot reach the origin. Follow Troubleshooting Cloudflare 5xx errors.
- Check the Cloudflare status page. When Cloudflare is degraded, follow Cloudflare is down.
- Keep the incident open for an incident review, even when the errors stop by themselves.
Alert Behavior
Section titled “Alert Behavior”- The alert is rare. A 90-day replay against production data produced four firings: three site-wide outages and one 10% error burst.
- The alert is silent while the Cloudflare exporter delivers no data.
CloudflareExporterStaleDataandCloudflareServiceGitlabZoneTrafficAbsentcover that case. CloudflareServiceGitlabZoneErrorSLOViolationcovers sustained error rates over 1 hour and 6 hours. Those windows dilute an outage of a few minutes, which is the case this alert covers.
Escalation
Section titled “Escalation”#g_networking_and_incident_managementin Slack for Cloudflare questions.
Definitions
Section titled “Definitions”- Alert definition
- Unit test
- Tuning: the 90-day replay produced 7 firings at a 2% threshold and 12 at 1%. The backtest is in observability/team#4595.