Dashboards
Visualize agent performance with dashboards
Monitoring Dashboards
Create custom dashboards to visualize agent performance and health.
Default Dashboard
Access the default dashboard at https://dashboard.swiftclaw.app
Key Metrics
- Response Time: p50, p95, p99 latencies
- Throughput: Requests per second
- Error Rate: Percentage of failed requests
- Cost: Daily and monthly spend
- Uptime: Availability percentage
Custom Dashboards
Create custom dashboards:
swiftclaw dashboards create my-dashboard \
--agent my-agent \
--metrics response-time,error-rate,costDashboard Configuration
Configure dashboard layout:
{
"dashboard": {
"name": "Production Monitoring",
"layout": [
{
"type": "timeseries",
"metric": "response_time",
"title": "Response Time",
"size": "large"
},
{
"type": "gauge",
"metric": "error_rate",
"title": "Error Rate",
"size": "small"
},
{
"type": "counter",
"metric": "total_requests",
"title": "Total Requests",
"size": "small"
}
]
}
}Widget Types
Time Series
Track metrics over time:
{
"type": "timeseries",
"metric": "response_time",
"aggregation": "avg",
"interval": "1m"
}Gauge
Display current values:
{
"type": "gauge",
"metric": "error_rate",
"threshold": {
"warning": 2,
"critical": 5
}
}Counter
Show totals:
{
"type": "counter",
"metric": "total_requests",
"period": "24h"
}Table
List recent events:
{
"type": "table",
"source": "errors",
"columns": ["timestamp", "message", "user"],
"limit": 10
}Real-Time Updates
Dashboards update in real-time:
// Subscribe to real-time updates
const dashboard = new SwiftClawDashboard('my-agent');
dashboard.on('metric', (data) => {
console.log('New metric:', data);
});Sharing Dashboards
Share dashboards with your team:
swiftclaw dashboards share my-dashboard \
--email team@example.com \
--permission viewEmbedding Dashboards
Embed dashboards in your app:
<iframe
src="https://dashboard.swiftclaw.app/embed/my-dashboard"
width="100%"
height="600"
></iframe>Alerts Integration
Link alerts to dashboards:
swiftclaw alerts create \
--dashboard my-dashboard \
--metric error-rate \
--threshold 5%Export Data
Export dashboard data:
swiftclaw dashboards export my-dashboard \
--format csv \
--period 7d \
--output metrics.csvCustom dashboards help you monitor what matters most for your agents.
How is this guide ?
Last updated on