Metrics
Monitor your project's performance, execution statistics, costs, and storage usage from a single dashboard.
Overview
The Metrics dashboard gives you real-time visibility into how your project is performing. It is organized in two tabs, each focused on a different aspect of your project's health:
| Tab | Purpose | Key data |
|---|---|---|
| Overview | Performance and cost tracking | Executions, latency, cost, error rate |
| Storage | Storage consumption monitoring | Bucket sizes, database size, total usage |
Key Metrics
The overview tab displays four core metric cards at the top of the page:
| Metric | Description | Unit |
|---|---|---|
| Executions | Total endpoint executions, broken down by successful and failed requests | Count |
| Avg Duration | Average execution latency across all endpoints | ms |
| Cost | Total computation cost for the selected time range | USD |
| Storage | Current storage usage with breakdown by type | MB / GB |
Time Ranges
All metrics can be filtered by time range using the selector in the header. The selected range affects both the metric cards and the charts below them.
| Range | Data points | Best for |
|---|---|---|
1h | Per-minute granularity | Debugging active issues |
24h | Per-hour granularity | Daily traffic patterns |
7d | Per-day granularity | Weekly trends |
30d | Per-day granularity | Monthly billing estimates |
Charts
Below the metric cards, an interactive chart displays historical trends for the selected metric. You can customize the visualization in two ways:
- Chart type β Switch between
BarandLinecharts - Metric selector β Choose between
Executions,Duration, orCost
Charts update automatically when you change the time range or metric selection.
Cost Breakdown
The cost breakdown card shows a detailed summary of charges for the current billing period:
- Computation costs β Charges per endpoint based on execution count and duration
- Storage costs β Charges based on total storage used across buckets and database
- Monthly estimate β Projected total cost based on current usage patterns
API Access
You can also fetch metrics programmatically:
const response = await fetch(
'https://api.dypai.ai/metrics/engine/{project_id}',
{
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json'
}
}
);
const metrics = await response.json();
// { executions: 1250, avg_duration: 45.2, cost: 12.50, ... }For historical data, use the history endpoint with a time range parameter:
// Fetch last 7 days of metric history
const history = await fetch(
'https://api.dypai.ai/metrics/engine/{project_id}/history?range=7d',
{ headers: { 'Authorization': 'Bearer ' + token } }
);Storage Tab
The Storage tab provides a detailed view of your project's storage consumption:
- Total usage β Current storage used vs. your plan limit
- Bucket breakdown β Size of each storage bucket
- Database size β Total size of your PostgreSQL database
- Trends β Storage growth over time