158 lines
4.1 KiB
JSON
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 }
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|