<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nurbol Sakenov</title>
    <description>The latest articles on DEV Community by Nurbol Sakenov (@nsakenov).</description>
    <link>https://dev.to/nsakenov</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2809196%2F2b77a537-d999-4b30-b789-8e5a7785707f.jpeg</url>
      <title>DEV Community: Nurbol Sakenov</title>
      <link>https://dev.to/nsakenov</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nsakenov"/>
    <language>en</language>
    <item>
      <title>AI API uptime monitoring: what to probe and when to alert</title>
      <dc:creator>Nurbol Sakenov</dc:creator>
      <pubDate>Fri, 20 Nov 2026 15:52:25 +0000</pubDate>
      <link>https://dev.to/nsakenov/ai-api-uptime-monitoring-what-to-probe-and-when-to-alert-2bbg</link>
      <guid>https://dev.to/nsakenov/ai-api-uptime-monitoring-what-to-probe-and-when-to-alert-2bbg</guid>
      <description>&lt;p&gt;An AI API can fail in more ways than a web page. It can return 500s. It can return 529 or 503 because the provider is overloaded. It can return 429 for your key while everyone else is fine. It can answer 200 in 40 seconds instead of 2. One model can fail while the others work, and one region can fail while the others answer.&lt;/p&gt;

&lt;p&gt;Slow is the hardest of these to call, because the same answer time is fine for one feature and an outage for another:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How slow is too slow? Time until the user sees the first output&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhlsjdhyqzmy36ax66cav.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhlsjdhyqzmy36ax66cav.png" alt="Rough latency ranges on a log scale from 0.1 to 60 seconds. Code completion: fine under 0.3 s, users notice up to 1 s, broken past 1 s. Voice agent first audio: fine under 0.8 s, notice up to 2 s, broken past 2 s. Chat first token: fine under 1 s, notice up to 10 s, broken past 10 s. Agent step: fine under 10 s, notice up to 30 s, broken past 30 s. Background job: fine until your timeout." width="799" height="407"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;
  Show as a table
  &lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Use&lt;/th&gt;
&lt;th&gt;Fine&lt;/th&gt;
&lt;th&gt;Users notice&lt;/th&gt;
&lt;th&gt;Feels broken&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Code completion&lt;/td&gt;
&lt;td&gt;under 0.3 s&lt;/td&gt;
&lt;td&gt;0.3–1 s&lt;/td&gt;
&lt;td&gt;over 1 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Voice agent, first audio&lt;/td&gt;
&lt;td&gt;under 0.8 s&lt;/td&gt;
&lt;td&gt;0.8–2 s&lt;/td&gt;
&lt;td&gt;over 2 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chat, first token&lt;/td&gt;
&lt;td&gt;under 1 s&lt;/td&gt;
&lt;td&gt;1–10 s&lt;/td&gt;
&lt;td&gt;over 10 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agent step&lt;/td&gt;
&lt;td&gt;under 10 s&lt;/td&gt;
&lt;td&gt;10–30 s&lt;/td&gt;
&lt;td&gt;over 30 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Background job&lt;/td&gt;
&lt;td&gt;until your timeout&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;timeout&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;



&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Rules of thumb for the time until a user sees the first output, not measurements of any provider. The 0.1, 1, and 10 second marks follow Jakob Nielsen's &lt;a href="https://www.nngroup.com/articles/response-times-3-important-limits/" rel="noopener noreferrer"&gt;response time limits&lt;/a&gt;. Log scale. Measure your own baseline before you set alert limits.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The provider's status page catches some of these, usually late. Your own traffic catches the rest, but only when you have traffic. A probe from outside covers the gap: a small real request, on a schedule, from more than one place, that tells you whether your key, your model, and your path to the provider work right now.&lt;/p&gt;

&lt;p&gt;This post covers what that probe should send, how to read its answer, when to alert, and what it costs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three signals, three different questions
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Signal&lt;/th&gt;
&lt;th&gt;What it answers&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;The provider's status feed&lt;/td&gt;
&lt;td&gt;Has the provider declared an incident?&lt;/td&gt;
&lt;td&gt;Nothing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;An authenticated read, such as &lt;code&gt;GET /v1/models&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Is the API reachable, and does my key work?&lt;/td&gt;
&lt;td&gt;No tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A tiny request to the model you ship&lt;/td&gt;
&lt;td&gt;Does my model answer, and how fast?&lt;/td&gt;
&lt;td&gt;A few tokens per run&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz4lpv52wkwr5izxtbjtj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz4lpv52wkwr5izxtbjtj.png" alt="How far each AI API check reaches. The status feed check reads the provider's status page, which staff update after an incident is confirmed. The cheap read, GET /v1/models, reaches the API front door and proves the network, TLS, and your key. Only the tiny model request goes through the front door to the model and proves it can answer." width="800" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Each check reaches one layer further. The status page is updated by people after an incident is confirmed, and the cheap read stops at the front door. Only the model request proves the model can answer, so it is the one to alert on.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Run all three. The status feed gives you context and wording for your own status page. The read is cheap enough to run often. The model request is the only one that proves the model works, so it is the one that should page someone.&lt;/p&gt;

&lt;p&gt;If your app already logs every model call, error rates from that traffic are the best signal during busy hours. Keep the probe anyway: it runs at 3 a.m. when nobody is calling the API, it gives you a clean latency baseline with the same request every time, and it still works when the failure is in your own code path.&lt;/p&gt;

&lt;h2&gt;
  
  
  The request to send
&lt;/h2&gt;

&lt;p&gt;Send the smallest request your app actually makes, to the model your app actually uses, with a key reserved for monitoring. Keep the prompt short and the output limit as low as the model accepts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OpenAI&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s https://api.openai.com/v1/chat/completions \
  -H &lt;span class="s2"&gt;"Authorization: Bearer $OPENAI_MONITOR_KEY"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"model":"'&lt;/span&gt;&lt;span class="s2"&gt;"$MODEL"&lt;/span&gt;&lt;span class="s1"&gt;'","messages":[{"role":"user","content":"Reply with: ok"}],"max_completion_tokens":16,"reasoning_effort":"none"}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Newer OpenAI models reject &lt;code&gt;max_tokens&lt;/code&gt; and need &lt;code&gt;max_completion_tokens&lt;/code&gt;. Reasoning models count their thinking against that limit, and some reject a limit of 1, so leave a little room and set the lowest &lt;code&gt;reasoning_effort&lt;/code&gt; the model accepts. Drop &lt;code&gt;reasoning_effort&lt;/code&gt; for models that do not reason.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Anthropic&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s https://api.anthropic.com/v1/messages \
  -H &lt;span class="s2"&gt;"x-api-key: $ANTHROPIC_MONITOR_KEY"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"anthropic-version: 2023-06-01"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"model":"'&lt;/span&gt;&lt;span class="s2"&gt;"$MODEL"&lt;/span&gt;&lt;span class="s1"&gt;'","max_tokens":1,"messages":[{"role":"user","content":"Reply with: ok"}]}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Google Gemini&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s &lt;span class="s2"&gt;"https://generativelanguage.googleapis.com/v1beta/models/$MODEL:generateContent"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"x-goog-api-key: $GEMINI_MONITOR_KEY"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"contents":[{"parts":[{"text":"Reply with: ok"}]}],"generationConfig":{"maxOutputTokens":1}}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Put the Gemini key in the header, not in a &lt;code&gt;?key=&lt;/code&gt; query parameter. URLs end up in logs and alert messages, where a header does not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OpenAI-compatible APIs.&lt;/strong&gt; Groq, Mistral, xAI, DeepSeek, Together, Fireworks, and OpenRouter accept the OpenAI request shape at their own &lt;code&gt;/chat/completions&lt;/code&gt; URL with &lt;code&gt;Authorization: Bearer&lt;/code&gt;. Check the exact path in each provider's docs: some put it under &lt;code&gt;/openai/v1/&lt;/code&gt; or &lt;code&gt;/inference/v1/&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Check the finish reason, not the text
&lt;/h3&gt;

&lt;p&gt;With a tiny output limit, the reply text is often empty, especially from reasoning models. An assertion like "the response contains ok" fails on a model that is working fine. Assert that the finish-reason field is present instead:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Provider&lt;/th&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Typical value with a tiny limit&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI and compatible&lt;/td&gt;
&lt;td&gt;&lt;code&gt;$.choices[0].finish_reason&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;length&lt;/code&gt; or &lt;code&gt;stop&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Anthropic&lt;/td&gt;
&lt;td&gt;&lt;code&gt;$.stop_reason&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;max_tokens&lt;/code&gt; or &lt;code&gt;end_turn&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini&lt;/td&gt;
&lt;td&gt;&lt;code&gt;$.candidates[0].finishReason&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;MAX_TOKENS&lt;/code&gt; or &lt;code&gt;STOP&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A 200 with that field means the model ran and produced output. A 200 without it is worth alerting on: &lt;a href="https://quickstatus.dev/blog/a-200-that-is-still-down/" rel="noopener noreferrer"&gt;a 200 can still be down&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  The cheap read
&lt;/h3&gt;

&lt;p&gt;For a check that runs often, call the model list with your key. It costs no tokens.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s -o /dev/null -w &lt;span class="s2"&gt;"%{http_code} %{time_total}s\n"&lt;/span&gt; \
  https://api.anthropic.com/v1/models \
  -H &lt;span class="s2"&gt;"x-api-key: $ANTHROPIC_MONITOR_KEY"&lt;/span&gt; -H &lt;span class="s2"&gt;"anthropic-version: 2023-06-01"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The same read works at &lt;code&gt;https://api.openai.com/v1/models&lt;/code&gt; with &lt;code&gt;Authorization: Bearer&lt;/code&gt; and at &lt;code&gt;https://generativelanguage.googleapis.com/v1beta/models&lt;/code&gt; with &lt;code&gt;x-goog-api-key&lt;/code&gt;. Without a key, OpenAI and Anthropic answer 401 and Gemini answers 403, so a monitor that treats any response below 500 as up will report all three as up with no key at all. Expect exactly 200.&lt;/p&gt;

&lt;p&gt;This proves the network path, TLS, the API front door, and your key. It does not prove that any model can serve a request. Model capacity fails separately, and that is the common failure.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the status code means
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;th&gt;What it usually means&lt;/th&gt;
&lt;th&gt;Alert?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;200 with a finish reason&lt;/td&gt;
&lt;td&gt;Up&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;401 or 403&lt;/td&gt;
&lt;td&gt;Your key was revoked, expired, or lost access to the model&lt;/td&gt;
&lt;td&gt;Yes, to you. Users see an outage even though the provider is fine&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;404&lt;/td&gt;
&lt;td&gt;The model name is wrong or was retired&lt;/td&gt;
&lt;td&gt;Yes. Model retirements break apps on a known date&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;429&lt;/td&gt;
&lt;td&gt;Your rate limit or quota. OpenAI also answers 429 when the account is out of credit&lt;/td&gt;
&lt;td&gt;Yes, if it repeats. Check billing before blaming the provider&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;400&lt;/td&gt;
&lt;td&gt;A bad request body, or on some providers a billing problem such as a low credit balance&lt;/td&gt;
&lt;td&gt;Yes. Read the error message&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;500, 502, 503, 504&lt;/td&gt;
&lt;td&gt;A provider-side failure&lt;/td&gt;
&lt;td&gt;Yes, after confirmation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;529 (Anthropic)&lt;/td&gt;
&lt;td&gt;The API is overloaded&lt;/td&gt;
&lt;td&gt;Yes, after confirmation. Retries often succeed within minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Timeout&lt;/td&gt;
&lt;td&gt;The provider or the path to it is too slow to answer&lt;/td&gt;
&lt;td&gt;Yes, after confirmation&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Read the error body as well as the code. Providers put the reason in JSON, for example &lt;code&gt;{"type":"error","error":{"type":"authentication_error",...}}&lt;/code&gt; from Anthropic, and that text is what tells a billing problem apart from an outage.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the status feed too
&lt;/h2&gt;

&lt;p&gt;Most AI providers publish a machine-readable status summary. These answered with JSON on 2026-11-20:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;https://status.openai.com/api/v2/status.json&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;https://status.claude.com/api/v2/status.json&lt;/code&gt; (Anthropic)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;https://status.mistral.ai/api/v2/status.json&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each returns &lt;code&gt;"indicator"&lt;/code&gt;: &lt;code&gt;none&lt;/code&gt; when nothing is declared, then &lt;code&gt;minor&lt;/code&gt;, &lt;code&gt;major&lt;/code&gt;, or &lt;code&gt;critical&lt;/code&gt;. Some feeds are HTML only, such as Gemini's at &lt;code&gt;aistudio.google.com/status&lt;/code&gt;, and some sit behind bot protection that blocks plain requests.&lt;/p&gt;

&lt;p&gt;A status feed is a lagging signal. A provider posts after it has confirmed a problem, a "partial outage" banner may or may not cover your model, and a quota or key problem never shows up there. Use it to explain an alert, not to raise one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Latency: decide what slow means
&lt;/h2&gt;

&lt;p&gt;A model that answers in 40 seconds is down for a chat UI and fine for a nightly batch. The chart at the top gives rough ranges per use. For alerts, pick the limit from your own numbers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run the probe for a week and note the typical time and the slowest 5% from each region.&lt;/li&gt;
&lt;li&gt;Set the slow limit at about two to three times that slow-5% figure. Lower makes noise, higher hides real slowdowns.&lt;/li&gt;
&lt;li&gt;Set the timeout well above the slow limit, usually 15 or 30 seconds for a model call, so a slow answer reads as slow, not as down.&lt;/li&gt;
&lt;li&gt;Alert on slow separately from down. Slow usually means degraded capacity, and it often comes before a full outage.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Measure time to first byte as well as total time. For a non-streaming request with a tiny output the two are close. For streaming apps, time to first token is what users feel. A probe with &lt;code&gt;"stream": true&lt;/code&gt; and a time-to-first-byte limit approximates it, but it cannot see a stream that stalls halfway through a long answer. That needs measurement in your own app.&lt;/p&gt;

&lt;p&gt;The tiny probe also measures the best case. Long prompts, long context, and long outputs take longer, so your app's real latency sits above the probe. Compare like with like: the probe against its own history, not against your production p95.&lt;/p&gt;

&lt;h2&gt;
  
  
  What probes cost
&lt;/h2&gt;

&lt;p&gt;Requests per month, per region:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Interval&lt;/th&gt;
&lt;th&gt;Requests per region&lt;/th&gt;
&lt;th&gt;From 5 regions&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;30 seconds&lt;/td&gt;
&lt;td&gt;86,400&lt;/td&gt;
&lt;td&gt;432,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1 minute&lt;/td&gt;
&lt;td&gt;43,200&lt;/td&gt;
&lt;td&gt;216,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5 minutes&lt;/td&gt;
&lt;td&gt;8,640&lt;/td&gt;
&lt;td&gt;43,200&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A request like the ones above uses about 10 to 20 input tokens and 1 to 16 output tokens. At an example price of $1 per million input tokens and $4 per million output tokens, every minute from 5 regions is about 4.3 million input tokens a month, roughly $4, plus $1 to $14 of output depending on the limit. Every 5 minutes from 5 regions is a fifth of that. Small models cost a fraction of it. Check the current price of the model you probe and do the same arithmetic.&lt;/p&gt;

&lt;p&gt;Two rules keep the bill and the blast radius small:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use a separate key with a hard spending limit.&lt;/strong&gt; A probe should never be able to run up a large bill, and a revoked monitoring key should not take down production.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Probe the model you ship, not a cheaper one.&lt;/strong&gt; A cheap model being up tells you little about the model your users hit. If cost matters, probe the cheap read often and the real model every 5 minutes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Confirm before you page anyone
&lt;/h2&gt;

&lt;p&gt;Model APIs time out now and then, and a single failed probe is usually noise. &lt;a href="https://quickstatus.dev/blog/one-failed-check-is-noise/" rel="noopener noreferrer"&gt;One failed check is noise&lt;/a&gt; covers this in detail. For AI APIs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Wait for a pattern.&lt;/strong&gt; Alert after 2 or 3 failed runs in a row.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check from more than one region.&lt;/strong&gt; If a provider fails from Frankfurt and works from Virginia, that is a regional or routing problem, and your EU users need to hear about it. If every region fails, it is the provider. &lt;a href="https://quickstatus.dev/blog/why-we-ping-from-different-regions/" rel="noopener noreferrer"&gt;Why we ping from different regions&lt;/a&gt; explains what each pattern means.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Alert per provider and per model.&lt;/strong&gt; One alert for "AI is down" hides which fallback to switch to.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you route between providers, through a gateway or your own fallback code, probe each provider directly and probe your own endpoint too. The direct probes tell you which provider failed. The probe on your endpoint tells you whether the fallback worked.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an outside probe does not cover
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Answer quality.&lt;/strong&gt; A model that answers 200 with wrong or empty output for real prompts looks up. Evaluations and output checks belong in your app.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your real latency.&lt;/strong&gt; The probe measures a tiny request. Long prompts and long outputs need measurement in your own traffic.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Streams that stall.&lt;/strong&gt; A probe sees the first bytes. It does not see a stream that stops halfway through.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Per-customer problems.&lt;/strong&gt; If each customer brings their own key, one probe with your key cannot see their quota.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automatic failover.&lt;/strong&gt; A probe tells you a provider failed. Switching traffic is your code's or your gateway's job.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A starting list
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;A tiny request to each model you ship, with a monitoring key, asserting status 200 and the finish-reason field.&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;GET /v1/models&lt;/code&gt; read per provider, expecting exactly 200, on a shorter interval if you want earlier warning of key problems.&lt;/li&gt;
&lt;li&gt;A check on each provider's status feed, used to explain alerts.&lt;/li&gt;
&lt;li&gt;A timeout of 15 to 30 seconds, and a separate slow limit at two to three times your measured slow-5% time.&lt;/li&gt;
&lt;li&gt;Alerts after 2 or 3 failures in a row, from at least two regions, per provider and per model.&lt;/li&gt;
&lt;li&gt;A monitoring key with a spending limit, and the cost worked out before you shorten the interval.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The status page tells you what the provider admits. Your own probe tells you whether your app can call the model right now.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setting it up in QuickStatus.dev
&lt;/h2&gt;

&lt;p&gt;Everything above works with any monitor that can send a POST with secret headers and check the body. In QuickStatus.dev, each probe is one HTTP check.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The model request.&lt;/strong&gt; Open &lt;strong&gt;Checks&lt;/strong&gt;, click &lt;strong&gt;Add check&lt;/strong&gt;, and pick &lt;strong&gt;Website or API&lt;/strong&gt;. Enter the provider URL and set &lt;strong&gt;Up when&lt;/strong&gt; to &lt;strong&gt;Status is 200 OK&lt;/strong&gt;. Under &lt;strong&gt;HTTP request&lt;/strong&gt;, set the method to POST, add the auth header and &lt;code&gt;Content-Type: application/json&lt;/code&gt; under &lt;strong&gt;Request headers&lt;/strong&gt;, and paste the request body. Under &lt;strong&gt;Assertions&lt;/strong&gt;, add &lt;strong&gt;Body contains&lt;/strong&gt; with the finish-reason field name: &lt;code&gt;finish_reason&lt;/code&gt;, &lt;code&gt;stop_reason&lt;/code&gt;, or &lt;code&gt;finishReason&lt;/code&gt;. It is an exact, case-sensitive text match. &lt;a href="https://quickstatus.dev/monitor-openai-api/" rel="noopener noreferrer"&gt;Monitor the OpenAI API&lt;/a&gt; walks through the same steps for OpenAI.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The cheap read and the status feed.&lt;/strong&gt; The &lt;code&gt;/v1/models&lt;/code&gt; read is the same check with method GET and no body. For a status feed, point an HTTP check at its &lt;code&gt;status.json&lt;/code&gt; URL and add &lt;strong&gt;JSONPath equals&lt;/strong&gt; with &lt;code&gt;$.status.indicator&lt;/code&gt; equal to &lt;code&gt;none&lt;/code&gt;. The check then goes down when the provider declares an incident, and you can link it to its own status page component.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to alert.&lt;/strong&gt; Under &lt;strong&gt;When to alert&lt;/strong&gt;, set &lt;strong&gt;Mark down after&lt;/strong&gt; to 2 or 3 and &lt;strong&gt;Request timeout&lt;/strong&gt; to 15 or 30 seconds. Under &lt;strong&gt;Slow responses&lt;/strong&gt;, set &lt;strong&gt;Slow above (ms)&lt;/strong&gt; and measure on &lt;strong&gt;Total time&lt;/strong&gt; or &lt;strong&gt;Time to first byte&lt;/strong&gt;. A slow run marks the check &lt;strong&gt;Slow&lt;/strong&gt;, not down, sends an alert, and leaves uptime alone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Regions and intervals.&lt;/strong&gt; Free checks every 5 minutes from 1 region. Pro checks every 60 seconds from up to five regions: San Francisco, Ashburn, Montreal, Frankfurt, and Singapore. Scale checks every 30 seconds. Every run stores its duration and region, so the check page shows whether a slowdown is everywhere or in one place.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What failed.&lt;/strong&gt; When a run fails, the check's results show what the provider answered, such as &lt;code&gt;authentication_error&lt;/code&gt; or an overloaded message, with header values replaced by [redacted]. Alerts carry the status code. Email and Telegram alerts are on every plan. Slack, Discord, PagerDuty, Pushover, and webhook alerts are Pro.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Status page.&lt;/strong&gt; Link each check to a component, for example &lt;em&gt;Chat (OpenAI)&lt;/em&gt; or &lt;em&gt;Summaries (Anthropic)&lt;/em&gt;, so a provider outage shows as one feature degraded rather than everything down. Under &lt;strong&gt;When the check is down&lt;/strong&gt;, choose &lt;strong&gt;Create an incident automatically&lt;/strong&gt; or &lt;strong&gt;Ask me to review first&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How the providers compare.&lt;/strong&gt; &lt;a href="https://quickstatus.dev/uptime-rankings/llm-apis/" rel="noopener noreferrer"&gt;LLM API uptime rankings&lt;/a&gt; runs this probe, a tiny request with a finish-reason check, against OpenAI, Anthropic, Gemini, xAI, Mistral, DeepSeek, Cohere, and Moonshot every 5 minutes from all five regions, and publishes weekly uptime.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Limits.&lt;/strong&gt; Checks only reach public URLs, so a model server inside your VPC needs a public health route. A check measures one request: it does not follow a stream to the end, score answers, or fail traffic over to another provider. Auth headers and request bodies are set in the console. The &lt;a href="https://quickstatus.dev/mcp-uptime-monitoring/" rel="noopener noreferrer"&gt;uptime monitoring MCP server&lt;/a&gt; can create, run, and link these checks from Claude Code, Cursor, or Codex, but it leaves secrets in the console.&lt;/p&gt;

&lt;p&gt;When the model API your product depends on fails, your users should hear it from you before they open a ticket. Start free with 10 checks and a status page, no card. See &lt;a href="https://quickstatus.dev/pricing/" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>monitoring</category>
      <category>sre</category>
    </item>
    <item>
      <title>Your pods are Ready. That doesn't mean anyone can reach them.</title>
      <dc:creator>Nurbol Sakenov</dc:creator>
      <pubDate>Wed, 04 Nov 2026 12:58:26 +0000</pubDate>
      <link>https://dev.to/nsakenov/your-pods-are-ready-that-doesnt-mean-anyone-can-reach-them-3b0d</link>
      <guid>https://dev.to/nsakenov/your-pods-are-ready-that-doesnt-mean-anyone-can-reach-them-3b0d</guid>
      <description>&lt;p&gt;Kubernetes is good at checking itself. The kubelet runs liveness, readiness, and startup probes against each container, restarts the ones that hang, and takes unready ones out of their Service. But those probes never leave the cluster. The kubelet calls the pod's IP directly, so a probe never touches the path your users take: public DNS, the cloud load balancer, TLS termination, the ingress controller, the ingress rule, and the Service in front of your pods.&lt;/p&gt;

&lt;p&gt;That path is where a lot of "everything is green and nobody can reach us" outages happen:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An ingress rule points at the wrong Service name or port after a rename. The ingress returns 404 or 503 while every pod is Ready.&lt;/li&gt;
&lt;li&gt;A TLS secret is replaced with the wrong certificate, or the controller falls back to its default self-signed one.&lt;/li&gt;
&lt;li&gt;The ingress controller itself is unhealthy, and every host behind it returns 502 or 504 at once.&lt;/li&gt;
&lt;li&gt;external-dns, or a manual change, leaves the public record pointing at an old load balancer.&lt;/li&gt;
&lt;li&gt;A security group or &lt;code&gt;loadBalancerSourceRanges&lt;/code&gt; change blocks internet traffic while in-cluster traffic keeps working.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;More probes won't catch these. One check per public host, run from outside the cluster, will.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to check from outside
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A readiness URL that goes through the ingress.&lt;/strong&gt; Expose &lt;code&gt;https://api.example.com/readyz&lt;/code&gt; on the normal ingress path and return a small JSON body only when the app can serve. A 200 there means DNS, TLS, the load balancer, the ingress rule, and the Service all worked for that request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The body, not only the status.&lt;/strong&gt; Default backends can answer 200 with the wrong page. Assert on a parsed JSON field (&lt;code&gt;$.status == "ok"&lt;/code&gt;), not raw text: &lt;code&gt;"status":"ok"&lt;/code&gt; and &lt;code&gt;"status": "ok"&lt;/code&gt; are the same JSON and different strings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The certificate.&lt;/strong&gt; Make the check fail on an invalid certificate, so a wrong secret or the self-signed fallback shows up as a failure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The public DNS record.&lt;/strong&gt; If external-dns manages it or you move between load balancers, check that the name still resolves to what you expect.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Non-HTTP ports.&lt;/strong&gt; A LoadBalancer Service for Postgres, Redis, or MQTT can be checked with a TCP connect.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More than one region.&lt;/strong&gt; A regional routing problem looks like a full outage from one place and like nothing from anywhere else.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Alert on confirmed failures, not on rollouts
&lt;/h2&gt;

&lt;p&gt;A rolling deploy, an HPA scale-up, or a node drain can drop a single request. Alert after 2 or 3 failures in a row, set the timeout a little above the readiness endpoint's normal response time, and make sure a flapping check sends one message, not one per change.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an outside check does not cover
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CronJobs and workers&lt;/strong&gt; have no public URL; use a heartbeat (the job pings a URL when it finishes).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Certificate expiry ahead of time&lt;/strong&gt;: keep cert-manager's own alerts on.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Internal Services&lt;/strong&gt; stay with your probes and Prometheus alerts.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A starting checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] &lt;code&gt;/readyz&lt;/code&gt; through the ingress, JSON only when the app can serve&lt;/li&gt;
&lt;li&gt;[ ] One check per public host, with a body-field assertion and certificate verification on&lt;/li&gt;
&lt;li&gt;[ ] One DNS check per hostname external-dns manages&lt;/li&gt;
&lt;li&gt;[ ] One TCP check per non-HTTP port you expose&lt;/li&gt;
&lt;li&gt;[ ] Alert after 2–3 consecutive failures&lt;/li&gt;
&lt;li&gt;[ ] Each public host as its own component on your status page&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Probes keep your pods healthy. A check from outside tells you whether anyone can reach them.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I build &lt;a href="https://quickstatus.dev/" rel="noopener noreferrer"&gt;QuickStatus.dev&lt;/a&gt;, which runs API, Website, DNS, and TCP checks from outside your infrastructure and ties them to a status page. The full version of this post, including how each checklist step maps to those checks, is &lt;a href="https://scaledpapers.com/blog/kubernetes-ingress-monitoring/" rel="noopener noreferrer"&gt;on our blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>devops</category>
      <category>monitoring</category>
      <category>sre</category>
    </item>
  </channel>
</rss>
