Skip to main content

apim-throttle-expert

Diagnose 429 responses from the AI Citadel APIM gateway — identify which rate-limit policy tripped (per-product quota, per-named-value rate-limit-by-key, or backend pool TPM exhaustion).

설치로 이동

소스 정보

저장소
aiappsgbb/awesome-gbb
최근 소스 활동
2026년 5월 20일 13:04
감지된 SKILL.md 언어
영어
스타
6
포크
3

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
apim_throttle_expert
description
Diagnose 429 responses from the AI Citadel APIM gateway — identify which rate-limit policy tripped (per-product quota, per-named-value rate-limit-by-key, or backend pool TPM exhaustion).
# apim_throttle_expert ## When to use The SRE Agent should invoke this skill when: - A user reports a 429 from the Citadel gateway - A scheduled task flags a spike in 429 responses - Backend pool TPM utilization approaches its limit ## Investigation flow 1. **Identify the failing operation** — ask the user for the path (`/llm/v1/chat/completions`, `/doc/analyze`, etc.) and the time window. 2. **Pull APIM diagnostics** from Log Analytics: ```kql ApiManagementGatewayLogs | where TimeGenerated > ago(2h) | where ResponseCode == 429 | summarize count() by OperationId, ClientIpAddress, ProductId, bin(TimeGenerated, 5m) | order by TimeGenerated desc ``` 3. **Classify the 429** by inspecting the response headers in the same log: | Header present | Cause | Action | |---|---|---| | `Retry-After: <secs>` + `x-throttling-source: apim-product-quota` | Per-product monthly quota exhausted | Check product config; consider raising or moving caller to a different product | | `Retry-After: <secs>` + `x-throttling-source: rate-limit-by-key` | Per-key rate limit (typically per-spoke MI) | Check rate-limit policy + named value | | `Retry-After: <secs>` + `x-aoai-throttle: true` | Backend AOAI TPM exhaustion (not APIM) | Scale up AOAI deployment or move to PTU | | No `Retry-After` | Bug in policy — escalate | Read the operation's policy XML | 4. **For backend exhaustion**, check the BackendPool config: ```bash az apim api operation policy list ... ``` 5. **Output** the classification, the specific policy / quota that triggered, the per-product utilization, and a recommended action. ## Tools This skill uses: - `RunAzCliReadCommands` - `QueryLogAnalyticsByWorkspaceId` ## Safety - Never modify APIM policy, named values, or product subscriptions - Never read APIM subscription key contents - All actions must be reviewed by a human
GitHub에서 보기