Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)84k Β· #1434

omni-resilience

Fungsinya

Skill ini menunjukkan cara memeriksa apakah penyedia AI sehat dan responsif. Skill ini untuk administrator yang ingin cepat menemukan penyedia yang lambat atau gagal, serta peringatan anggaran.

Kapan dipakai

  • βœ“Saat pengguna bertanya apakah penyedia atau gateway sehat saat ini.
  • βœ“Saat pengguna ingin melihat angka latensi untuk penyedia.
  • βœ“Saat pengguna ingin memeriksa mengapa sebuah model atau koneksi dikunci.

Link skill

https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-resilience/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-resilience/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œPenyedia mana yang sedang lambat atau gagal, dan apakah ada model yang terkunci?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini mendaftar endpoint pemantauan untuk kesehatan sistem, kesehatan per model, statistik kompresi, dan data resiliensi. Skill ini melaporkan circuit breaker, masa tenang, penguncian model, serta persentil latensi seperti p50, p95, dan p99.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->

Overview

Monitor provider health, circuit-breaker states, p50/p95/p99 latency metrics, and budget guard alerts. Inspect connection cooldowns and model lockouts in real time.

Authentication

All requests require a valid Bearer token or session cookie. Obtain a token via POST /api/auth/login or configure REQUIRE_API_KEY=false for local development.

Endpoints

GET /api/monitoring/health

System health check

Returns system health including uptime, memory, circuit breakers, rate limits

curl http://localhost:20128/api/monitoring/health \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/monitoring/model-health

Get per-model health states

Management-only report that classifies every synced model on every provider connection as HEALTHY, DEGRADED, RATE_LIMITED, AUTH_FAILED, PROVIDER_DOWN, CONNECTION_BLOCKED, MODEL_LOCKED or UNKNOWN, from the connection state, the provider circuit breaker and the per-model lockout. Includes connection ids and names, so it requires a management principal.

curl http://localhost:20128/api/monitoring/model-health \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/monitoring/compression

Get compression result-memo statistics

In-process compression result-memo observability snapshot β€” size, capacity, lifetime hits/misses/hitRate plus 1m/5m/15m/1h windowed rates. Lightweight (no DB, no provider reads) companion to GET /api/monitoring/health intended for frequent polling. Sent with Cache-Control: no-store, no-cache, must-revalidate. Counters reset on process restart.

curl http://localhost:20128/api/monitoring/compression \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/provider-metrics

GET provider metrics

curl http://localhost:20128/api/provider-metrics \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

Payloads

See the full OpenAPI specification at GET /api/openapi/spec or docs/openapi.yaml for detailed request/response schemas.

<!-- skill:custom-start --> <!-- Migrated from skills/omniroute-monitoring/SKILL.md (preserved curated content) -->

OmniRoute β€” Monitoring & Health

Requires OMNIROUTE_URL and OMNIROUTE_KEY. See entry-point SKILL for setup.

System health

curl $OMNIROUTE_URL/api/health \
  -H "Authorization: Bearer $OMNIROUTE_KEY"

Returns: uptime, memory, active connections, circuit breaker states, rate limit status, cache stats.

Unauthenticated quick check:

curl $OMNIROUTE_URL/api/health
# β†’ {"ok":true}

Provider circuit breakers

Circuit breakers prevent traffic from hitting failing providers.

States: CLOSED (normal), OPEN (blocked), HALF_OPEN (probe mode β€” auto-recovers).

curl $OMNIROUTE_URL/api/monitoring/health \
  -H "Authorization: Bearer $OMNIROUTE_KEY"

Response includes circuitBreakers array with per-provider state and resetAt timestamp.

Per-provider metrics (p50/p95/p99)

curl $OMNIROUTE_URL/api/providers/metrics \
  -H "Authorization: Bearer $OMNIROUTE_KEY"

Response shape per provider:

{
  "provider": "anthropic",
  "requests": 1247,
  "successRate": 0.994,
  "latency": { "p50": 820, "p95": 2100, "p99": 3800 },
  "circuitState": "CLOSED",
  "tokensUsed": 2847000
}

Via MCP (if OmniRoute is your MCP server)

omniroute_get_health            β†’ full system health snapshot
omniroute_get_provider_metrics  β†’ p50/p95/p99 + circuit state per provider
omniroute_get_session_snapshot  β†’ cost, tokens, errors for current session
omniroute_check_quota           β†’ quota balance + percent remaining + reset time
omniroute_db_health_check       β†’ diagnose + auto-repair database drift

Quota check

curl $OMNIROUTE_URL/api/quota \
  -H "Authorization: Bearer $OMNIROUTE_KEY"

Returns used/total tokens and requests per provider/account, with resetAt timestamps.

Budget guard (spend limit)

Set a session spending limit that degrades or blocks requests when hit:

curl -X POST $OMNIROUTE_URL/api/budget/guard \
  -H "Authorization: Bearer $OMNIROUTE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "limitUsd": 5.00,
    "action": "degrade",
    "degradeTo": "openai/gpt-4o-mini"
  }'

action options:

  • degrade β€” switch to a cheaper model when limit is hit
  • `b
Pertanyaan umum

Apa arti status per model?

Laporan kesehatan model mengklasifikasikan tiap model sebagai sehat, terdegradasi, dibatasi laju, gagal autentikasi, penyedia mati, dan status lainnya.

Apakah laporan kesehatan model bersifat sensitif?

Ya. Laporan ini memuat ID dan nama koneksi, sehingga skill menyatakan perlu login manajemen.

Apakah ada peringatan anggaran?

Ada. Skill ini mendaftar peringatan budget guard sebagai bagian dari pemantauan.

Detail

Deskripsi asli dari pembuat

Monitor provider health, circuit-breaker states, p50/p95/p99 latency metrics, and budget guard alerts. Inspect connection cooldowns and model lockouts in real time.

repo: cheaper-inference/OmniRoute

Popularitas

Bintang GitHub
84k
Peringkat
#1434
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa