DullJZ/ChannelMonitor

Channel Monitor 是一个用于监控OneAPI/NewAPI/OneHub渠道的工具,它直接读取channels和abilities数据表,每间隔一段时间测试每个渠道的模型可用性,根据请求是否成功更新可用模型,写入到数据表中,以此来实现渠道的自动监控,保证整体OneAPI/NewAPI/OneHub的高可用,尽可能减少错误返回次数。

What it solves

Channel Monitor addresses the challenge of maintaining high availability for OneAPI or NewAPI services. It automates the process of checking whether AI model channels are actually working, preventing users from encountering errors caused by dead or unresponsive connections.

How it works

The tool connects directly to your OneAPI/NewAPI database. It periodically tests the availability of models within each channel by attempting requests. If a model is responsive, it updates the database automatically to reflect the current status. It supports concurrent testing, rate limiting to avoid overloading your channels, and can send alerts via email or Telegram if issues arise.

Who it’s for

This tool is designed for administrators of OneAPI or NewAPI instances who want to ensure their service remains reliable without manually verifying every channel and model.

Highlights

  • Directly reads and writes to your existing database (MySQL, SQLite, PostgreSQL, or SQL Server).
  • Automatically fetches and updates available models from upstream providers.
  • Includes built-in rate limiting (RPS/RPM) and concurrent testing to manage traffic.
  • Integrates with Uptime Kuma for visual monitoring of model and channel health.
  • Provides automated notifications via SMTP email or Telegram Bot.
  • Supports flexible configuration using either JSON or YAML files.

Related

  • Project
  • Project
  • Project
  • Project