Analytics
Foil provides comprehensive analytics to understand your AI application’s performance, costs, and quality.Dashboard Overview
The main dashboard shows key metrics at a glance:| Metric | Description |
|---|---|
| Total Requests | Number of traces in the time period |
| Success Rate | Percentage of successful completions |
| Avg Latency | Mean response time |
| Active Agents | Agents with recent activity |
| Alert Count | Active alerts requiring attention |
Available Analytics
The dashboard includes charts and breakdowns for:- Requests over time — volume trends with agent breakdown
- Success/failure rates — error trends and patterns
- Latency distribution — response time buckets and p50/p95/p99 percentiles
- Token usage — input/output token consumption over time
- Cost breakdown — costs by model and time period
- Error analytics — errors by type and error rate trends
- Tool usage — which tools are used by which agents
Best Practices
Monitor success rate trends
Monitor success rate trends
A dropping success rate often indicates issues before they become critical.
Track p95 latency
Track p95 latency
Average latency can hide outliers. p95 shows what your slowest users experience.
Set up cost alerts
Set up cost alerts
Monitor costs closely, especially when testing new prompts or models.
Compare week-over-week
Compare week-over-week
Regular comparisons help identify regressions quickly.