OpenAI API Health Alerts: Set Them Up Right

OpenAI API health alerts can flag errors, cache drops, rate limit pressure, and Fast spillover. Learn the thresholds, gaps, and setup steps.

An API can look healthy right up until a burst of 500 errors, a cache miss wave, or a rate limit squeeze turns a normal release into a very long evening. OpenAI now has Health alerts for exactly those moments: configurable rules that notify a team when error rate, prompt cache hit rate, rate limit utilization, or Fast tier spillover crosses a threshold.

Here is the important bit before anyone starts clicking buttons. These are notifications, not circuit breakers. A spend alert does not stop requests, and an approaching rate limit alert does not reserve more capacity. The practical win is earlier evidence, scoped to the traffic group that actually has the problem.

What OpenAI API health alerts monitor

AlertWhat it measuresUseful first rule
Error rateOne selected HTTP status code divided by all matching requestsHTTP 500 above 5% over 15 minutes
Prompt cache hit rateCached input tokens divided by total input tokensWarn when a stable agent prefix suddenly loses cache efficiency
Approaching rate limitPeak RPM or TPM bucket use divided by its limit90% TPM for 10 consecutive minutes
Service tier spilloverEligible Fast attempts that fall back to Standard because of capacityAlert when latency assumptions stop holding

The formulas matter. Prompt cache hit rate is token weighted, not the share of requests that touched cache. One large uncached prompt can move the metric far more than many short requests. Rate limit utilization is also more subtle than it looks: OpenAI measures the enforced bucket, and that bucket can be shared by several models.

The minimum data gates can make a new rule look quiet

Error rate, cache hit rate, and Fast spillover rules need at least 100 matching requests in their window. Cache alerts also need 1,000 input tokens with usable cache measurements. A low traffic staging project can therefore have a correctly configured rule that never evaluates. That is not recovery and it is not proof that the service is fine.

OpenAI evaluates error, cache, and spillover windows once per minute. They trigger after two consecutive breached evaluations and resolve after two consecutive healthy ones. Notifications can arrive a few minutes later because collection, evaluation, and delivery are asynchronous. In other words, do not set a five minute window and promise an instant pager.

Technical detail: why one alert can produce several incidents

Each combination of selected projects, models, and other filters is a separate traffic group. Select two projects and two models, and OpenAI can evaluate four groups where they receive traffic. Error codes are evaluated separately too. A 6% HTTP 500 rate and a 4% HTTP 503 rate do not combine into a 10% error rate.

Set up the first two rules that usually pay off

  • Production HTTP 500 errors: Start with the project that receives real customer traffic, select HTTP 500, use a 5% threshold and a 15 minute window. OpenAI uses this same configuration as its example.
  • Prompt cache regression: Filter to the model and service tier used by your agent. Pick a threshold based on a normal baseline, then investigate a drop by comparing prompt prefixes and traffic shape rather than guessing.

For a long running agent, that cache rule becomes much more useful when you have already built a stable request prefix. Our GPT-6.2 Responses API migration guide explains why editing early context can cost you reasoning continuity and cache efficiency at the same time.

Ownership and delivery decide whether the alert is useful

Rules live at either organization or project scope. Reading custom rules requires the matching read permission. Creating or editing them requires the matching write permission. Email can reach owners and up to 20 additional addresses. Webhooks need an allowance on the organization and send event metadata plus a notification ID, not every diagnostic detail in the initial payload.

That webhook pattern is worth designing for. Treat the alert as a wakeup signal, then retrieve the notification with an organization Admin API key and inspect the affected project, model, service tier, status code, threshold, and evaluation window. For a voice product, this can sit beside the operational signals you already watch for a live session. See how GPT Live standby changes WebRTC session behavior for an example of why connected time and active inference time should not be confused.

Technical detail: thresholds in the dashboard and API use different formats

The dashboard shows percentages. The API uses fractions, so 0.05 means 5%. For safe updates, keep the rule ID and version returned by the API, then send that version as expected_version when changing the rule. This prevents one administrator from silently overwriting another administrator’s edit.

Three mistakes to avoid

  • Do not treat a health alert as automatic mitigation. It identifies a condition, it does not retry traffic, raise a limit, or shut off spend.
  • Do not compare a daily chart with a triggered rule without matching its project, model, tier, status code, and rolling window.
  • Do not use missing data as an all clear. Missing observations break an approaching rate limit sequence, and insufficient traffic can prevent other rules from evaluating.

OpenAI also separates custom health rules from default spend and API key expiration alerts. Spend alerts notify you when a percentage of the monthly limit is reached, but they do not halt requests. Key expiration reminders only apply to keys with expiration dates. They are valuable housekeeping controls, just not a substitute for production telemetry.

FAQ

Do OpenAI API health alerts stop an outage automatically?

No. They notify configured recipients when a rule triggers. Your application, on call process, and any separate automation still determine the response.

Why did my prompt cache alert not trigger?

Check traffic first. The 15 minute cache window needs at least 100 matching requests and 1,000 input tokens with usable cache measurements. Then verify that the selected project, model, tier, and observability tags match the traffic you expect.

Can a rate limit alert watch requests per minute and tokens per minute?

Yes. Choose RPM or TPM, set a utilization threshold, and select the number of consecutive breaching minutes. The rule watches the peak use of the enforced bucket for each minute.

The smart use of these alerts is not to create a dashboard graveyard. It is to make one team own a small number of signals that point to a real next action. If you run OpenAI in production, which would hurt you first: errors, a cache collapse, rate limit pressure, or Fast tier fallback? Share the rule you would wire up before the next release, because that is the one your future self will thank you for.

Syed Hussaini
Syed Hussaini

With over 20 years of experience, I specialize in customer support, website development (using platforms like WordPress, Joomla, and Google Sites), IT operations, and digital asset management. I've managed teams, trained staff, and created Knowledgebase and Playbook articles. I’m known for my high productivity, independence, and strong communication skills, and I have successfully worked across diverse regions, including APAC, EMEA, Eastern time and AMER.

Articles: 228

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Leave a Reply

Discover more from My Knowledge Buddy

Subscribe now to keep reading and get access to the full archive.

Continue reading