Files
defi-arbitrage/monitoring/grafana-dashboard.json
DBIS Core Team 6598c93adc Complete all next steps - Full integration
 Service Integration:
- Integrated metrics, risk monitoring, alerts, and caching into orchestrator
- Added real-time risk monitoring during deal execution
- Metrics recording for all deal operations

 Blockchain Integration:
- Implemented ethers.js blockchain service
- Real WETH wrapping with transaction confirmation
- Gas estimation and price fetching
- Transaction simulation before execution

 Redis Setup:
- Redis configuration and client creation
- Health check utilities
- Integration with cache service

 HSM Configuration:
- Complete HSM config for Vault, AWS KMS, Azure, GCP
- Configuration validation
- Key rotation settings

 Proxmox Deployment:
- Automated deployment script
- Systemd service configuration
- Health checks and status monitoring

 Integration Tests:
- Full deal execution flow tests
- Risk monitoring integration tests
- Caching integration tests

 Monitoring Dashboards:
- Grafana dashboard JSON configuration
- 11 panels covering all key metrics
- LTV, exposure, profit, transactions, errors
2026-01-27 16:16:50 -08:00

158 lines
4.1 KiB
JSON

{
"dashboard": {
"title": "Deal Orchestration - Arbitrage Service",
"tags": ["arbitrage", "defi", "deals"],
"timezone": "browser",
"schemaVersion": 16,
"version": 1,
"refresh": "30s",
"panels": [
{
"id": 1,
"title": "Deals Executed",
"type": "stat",
"targets": [
{
"expr": "sum(rate(arbitrage_deals_executed_total[5m]))",
"legendFormat": "Deals/sec"
}
],
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }
},
{
"id": 2,
"title": "Deal Status Distribution",
"type": "piechart",
"targets": [
{
"expr": "sum by (status) (arbitrage_deals_executed_total)",
"legendFormat": "{{status}}"
}
],
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }
},
{
"id": 3,
"title": "Current LTV Ratio",
"type": "gauge",
"targets": [
{
"expr": "arbitrage_current_ltv_ratio",
"legendFormat": "{{deal_id}}"
}
],
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 },
"thresholds": {
"mode": "absolute",
"steps": [
{ "value": 0, "color": "green" },
{ "value": 0.28, "color": "yellow" },
{ "value": 0.30, "color": "red" }
]
}
},
{
"id": 4,
"title": "USDTz Exposure",
"type": "graph",
"targets": [
{
"expr": "arbitrage_usdtz_exposure_usd",
"legendFormat": "{{deal_id}}"
}
],
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }
},
{
"id": 5,
"title": "Deal Duration",
"type": "histogram",
"targets": [
{
"expr": "histogram_quantile(0.95, rate(arbitrage_deal_duration_seconds_bucket[5m]))",
"legendFormat": "p95"
},
{
"expr": "histogram_quantile(0.50, rate(arbitrage_deal_duration_seconds_bucket[5m]))",
"legendFormat": "p50"
}
],
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }
},
{
"id": 6,
"title": "Profit Captured",
"type": "stat",
"targets": [
{
"expr": "sum(arbitrage_profit_captured_total)",
"legendFormat": "Total Profit (USD)"
}
],
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 },
"format": "currencyUSD"
},
{
"id": 7,
"title": "Transaction Success Rate",
"type": "graph",
"targets": [
{
"expr": "rate(arbitrage_transactions_submitted_total{status=\"confirmed\"}[5m]) / rate(arbitrage_transactions_submitted_total[5m]) * 100",
"legendFormat": "Success Rate %"
}
],
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 24 }
},
{
"id": 8,
"title": "Risk Violations",
"type": "table",
"targets": [
{
"expr": "topk(10, rate(arbitrage_risk_violations_total[5m]))",
"legendFormat": "{{violation_type}}"
}
],
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 24 }
},
{
"id": 9,
"title": "Active Deals",
"type": "stat",
"targets": [
{
"expr": "arbitrage_active_deals",
"legendFormat": "Active"
}
],
"gridPos": { "h": 4, "w": 6, "x": 0, "y": 32 }
},
{
"id": 10,
"title": "Error Rate",
"type": "stat",
"targets": [
{
"expr": "rate(arbitrage_deal_errors_total[5m])",
"legendFormat": "Errors/sec"
}
],
"gridPos": { "h": 4, "w": 6, "x": 6, "y": 32 }
},
{
"id": 11,
"title": "Gas Used",
"type": "graph",
"targets": [
{
"expr": "rate(arbitrage_transaction_gas_used_sum[5m])",
"legendFormat": "{{tx_type}}"
}
],
"gridPos": { "h": 8, "w": 24, "x": 0, "y": 36 }
}
]
}
}