Overview
Trio exposes metrics in Prometheus format at/metrics. You can scrape this endpoint with a Prometheus server and visualize the data in Grafana.
Key Metrics Explained
Provider Calls
external_provider_calls_total
Shows how many times each VLM provider was called. Use this to track costs and detect API key issues.
Job Statistics
jobs_created_totaljobs_completed_totaljobs_failed_total
Frame Statistics
frames_processed_total
Tracks captured vs skipped frames. High skip rates indicate the pre-filter is working effectively on static scenes, saving costs.
Webhook Statistics
webhooks_sent_total
Monitor status="failed" to detect if your webhook receiver is down.
Cost Analysis
To estimate costs, trackexternal_provider_calls_total for each provider and multiply by the provider’s cost per call.
Example:
- Gemini 2.5 Flash: ~$0.00002 / call
- GPT-4o Mini: ~$0.000015 / call
Optimization Tips
- Use Pre-filtering: Keep
enable_prefilterset totrue(default) to skip static frames. - Adjust Interval: Use a 30-60s interval for most monitoring use cases.
- Use Check-Once: For single queries, use
/check-onceinstead of starting a job.