ai-vitals

Crates.ioai-vitals
lib.rsai-vitals
version0.8.1
created_at2025-08-04 16:35:40.228783+00
updated_at2025-09-25 09:21:57.012385+00
descriptionA tool to monitor LLM endpoints and report status to Cronitor.
homepagehttps://doubleword.ai
repositoryhttps://github.com/doublewordai/model-monitor
max_upload_size
id1780924
size133,224
(pjb157)

documentation

README

AI Vitals

AI Vitals is a tool designed to monitor LLM (Large Language Model) endpoints and report their status to Cronitor, a service for monitoring and alerting on the health of applications. It actively monitors OpenAI-compatible API endpoints, ensuring they are functioning correctly and reporting any issues to Cronitor for further triage.

Usage

You can use the library interface or the command-line interface (CLI) to monitor your endpoints. The CLI is particularly useful for quick checks or running in automated scripts. We have an example helm chart that uses the CLI to monitor endpoints with kubernetes CronJobs.

use ai_vitals::{Config, Monitor};
use anyhow::Result;

#[tokio::main]
async fn main() -> Result<()> {
    let config = Config::parse(); // Load configuration from environment or command line
    let monitor = Monitor::new(config)?;
    let exit_code = monitor.run().await;
    std::process::exit(exit_code);
}

You can also run the CLI directly:

cargo run --bin ai-vitals -- --cronitor-base-url "https://cronitor.link/p/your-key/your-group" \
  --server-url "http://my-service" \
  --model-name "embed" \
  --endpoint-type "embedding" \
  --monitor-name "my-embedding-model"
Commit count: 62

cargo fmt