mirror of
https://github.com/luxfi/monitoring.git
synced 2026-10-30 15:24:48 +00:00
232 lines
6.2 KiB
JSON
232 lines
6.2 KiB
JSON
{
|
|
"dashboard": {
|
|
"title": "LUX DEX X-Chain Performance",
|
|
"tags": ["dex", "x-chain", "performance", "hft"],
|
|
"timezone": "browser",
|
|
"panels": [
|
|
{
|
|
"title": "Order Matching Latency (Target: <1μs)",
|
|
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 0},
|
|
"type": "graph",
|
|
"targets": [
|
|
{
|
|
"expr": "dex:matching_latency:p50 * 1000000",
|
|
"legendFormat": "p50",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"expr": "dex:matching_latency:p95 * 1000000",
|
|
"legendFormat": "p95",
|
|
"refId": "B"
|
|
},
|
|
{
|
|
"expr": "dex:matching_latency:p99 * 1000000",
|
|
"legendFormat": "p99",
|
|
"refId": "C"
|
|
},
|
|
{
|
|
"expr": "dex:matching_latency:p999 * 1000000",
|
|
"legendFormat": "p99.9",
|
|
"refId": "D"
|
|
}
|
|
],
|
|
"yaxes": [
|
|
{
|
|
"format": "µs",
|
|
"label": "Latency"
|
|
}
|
|
],
|
|
"thresholds": [
|
|
{
|
|
"value": 1,
|
|
"op": "gt",
|
|
"fill": true,
|
|
"line": true,
|
|
"colorMode": "critical"
|
|
},
|
|
{
|
|
"value": 0.597,
|
|
"op": "lt",
|
|
"fill": false,
|
|
"line": true,
|
|
"colorMode": "custom",
|
|
"lineColor": "green"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Throughput (Target: 100M trades/sec)",
|
|
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 0},
|
|
"type": "graph",
|
|
"targets": [
|
|
{
|
|
"expr": "dex:orders_per_second",
|
|
"legendFormat": "Orders/sec",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"expr": "dex:trades_per_second",
|
|
"legendFormat": "Trades/sec",
|
|
"refId": "B"
|
|
},
|
|
{
|
|
"expr": "dex:quotes_per_second",
|
|
"legendFormat": "Quotes/sec",
|
|
"refId": "C"
|
|
}
|
|
],
|
|
"yaxes": [
|
|
{
|
|
"format": "ops",
|
|
"label": "Operations/sec",
|
|
"logBase": 10
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "FPC Consensus Performance",
|
|
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 8},
|
|
"type": "graph",
|
|
"targets": [
|
|
{
|
|
"expr": "dex:consensus_round_time * 1000",
|
|
"legendFormat": "Round Time",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"expr": "dex:consensus_finality_time * 1000",
|
|
"legendFormat": "Finality Time",
|
|
"refId": "B"
|
|
}
|
|
],
|
|
"yaxes": [
|
|
{
|
|
"format": "ms",
|
|
"label": "Time"
|
|
}
|
|
],
|
|
"thresholds": [
|
|
{
|
|
"value": 50,
|
|
"op": "gt",
|
|
"fill": true,
|
|
"line": true,
|
|
"colorMode": "warning"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "DPDK Network Performance",
|
|
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 8},
|
|
"type": "graph",
|
|
"targets": [
|
|
{
|
|
"expr": "rate(dex_dpdk_packets_received_total[1m])",
|
|
"legendFormat": "Packets RX/sec",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"expr": "rate(dex_dpdk_packets_transmitted_total[1m])",
|
|
"legendFormat": "Packets TX/sec",
|
|
"refId": "B"
|
|
},
|
|
{
|
|
"expr": "rate(dex_dpdk_packet_drops_total[1m])",
|
|
"legendFormat": "Drops/sec",
|
|
"refId": "C"
|
|
}
|
|
],
|
|
"yaxes": [
|
|
{
|
|
"format": "pps",
|
|
"label": "Packets/sec"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Order Book Depth",
|
|
"gridPos": {"h": 8, "w": 8, "x": 0, "y": 16},
|
|
"type": "stat",
|
|
"targets": [
|
|
{
|
|
"expr": "dex_orderbook_bid_depth",
|
|
"legendFormat": "Bid Depth",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"expr": "dex_orderbook_ask_depth",
|
|
"legendFormat": "Ask Depth",
|
|
"refId": "B"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "WebSocket Connections",
|
|
"gridPos": {"h": 8, "w": 8, "x": 8, "y": 16},
|
|
"type": "stat",
|
|
"targets": [
|
|
{
|
|
"expr": "dex_websocket_connections_active",
|
|
"legendFormat": "Active Connections",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"expr": "rate(dex_websocket_messages_sent_total[1m])",
|
|
"legendFormat": "Messages/sec",
|
|
"refId": "B"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "GPU Acceleration Status",
|
|
"gridPos": {"h": 8, "w": 8, "x": 16, "y": 16},
|
|
"type": "stat",
|
|
"targets": [
|
|
{
|
|
"expr": "dex_gpu_utilization_percent",
|
|
"legendFormat": "GPU Utilization",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"expr": "dex_gpu_memory_used_bytes / 1024 / 1024 / 1024",
|
|
"legendFormat": "GPU Memory (GB)",
|
|
"refId": "B",
|
|
"format": "GB"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "System Resources",
|
|
"gridPos": {"h": 8, "w": 24, "x": 0, "y": 24},
|
|
"type": "graph",
|
|
"targets": [
|
|
{
|
|
"expr": "100 - (avg(irate(node_cpu_seconds_total{mode=\"idle\",instance=\"dex-node\"}[5m])) * 100)",
|
|
"legendFormat": "CPU Usage %",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"expr": "(node_memory_MemTotal_bytes{instance=\"dex-node\"} - node_memory_MemAvailable_bytes{instance=\"dex-node\"}) / node_memory_MemTotal_bytes{instance=\"dex-node\"} * 100",
|
|
"legendFormat": "Memory Usage %",
|
|
"refId": "B"
|
|
},
|
|
{
|
|
"expr": "rate(node_network_receive_bytes_total{instance=\"dex-node\",device!=\"lo\"}[5m]) * 8",
|
|
"legendFormat": "Network RX",
|
|
"refId": "C"
|
|
},
|
|
{
|
|
"expr": "rate(node_network_transmit_bytes_total{instance=\"dex-node\",device!=\"lo\"}[5m]) * 8",
|
|
"legendFormat": "Network TX",
|
|
"refId": "D"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"refresh": "5s",
|
|
"time": {
|
|
"from": "now-1h",
|
|
"to": "now"
|
|
}
|
|
}
|
|
} |