Skip to content

CloudflareGitlabZoneErrorRatioHigh

Table of Contents

[TOC]

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.

  1. Open the alert in Grafana.

  2. Break the errors down by status code in the mimir-gitlab-ops datasource:

    sum by (zone, status) (
    rate(cloudflare_zone_requests_status{zone=~"gitlab.com|staging.gitlab.com", status=~"5.."}[5m])
    )
  1. Declare an incident at severity 2.
  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.
  3. Check the Cloudflare status page. When Cloudflare is degraded, follow Cloudflare is down.
  4. Keep the incident open for an incident review, even when the errors stop by themselves.
  • 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. CloudflareExporterStaleData and CloudflareServiceGitlabZoneTrafficAbsent cover that case.
  • CloudflareServiceGitlabZoneErrorSLOViolation covers 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.
  • #g_networking_and_incident_management in Slack for Cloudflare questions.