Files
2025-12-31 22:21:37 -08:00

154 lines
4.1 KiB
YAML

# LUX DEX X-Chain Monitoring Configuration
# Extension for monitoring the LX DEX on X-Chain
scrape_configs:
# ============== DEX CORE METRICS ==============
# DEX Order Book Engine (597ns latency achievement)
- job_name: 'dex-engine'
metrics_path: '/metrics'
static_configs:
- targets: ['lux-dex-node:9090']
labels:
service: 'dex-engine'
chain: 'x-chain'
engine_type: 'hybrid' # Go/C++ hybrid for ultra-low latency
relabel_configs:
- source_labels: [__address__]
target_label: instance
replacement: 'dex-engine-primary'
# DEX Matching Performance
- job_name: 'dex-matching'
metrics_path: '/metrics/matching'
scrape_interval: 1s # High frequency for HFT monitoring
static_configs:
- targets: ['lux-dex-node:8080']
labels:
service: 'dex-matching'
performance_tier: 'ultra-low-latency'
metric_relabel_configs:
- source_labels: [__name__]
regex: 'dex_matching_latency_.*'
target_label: subsystem
replacement: 'matching'
# DEX WebSocket Feed
- job_name: 'dex-websocket'
metrics_path: '/metrics/ws'
static_configs:
- targets: ['lux-dex-node:8081']
labels:
service: 'dex-websocket'
protocol: 'ws'
# ============== DEX UI METRICS ==============
# DEX Frontend (Next.js)
- job_name: 'dex-ui'
static_configs:
- targets: ['lux-dex-ui:3000']
labels:
service: 'dex-frontend'
framework: 'nextjs'
path: '/v2'
# ============== DEX CONSENSUS METRICS ==============
# FPC Consensus with K=1 (Single Node Dev Mode)
- job_name: 'dex-consensus'
metrics_path: '/consensus/metrics'
static_configs:
- targets: ['lux-dex-node:5000']
labels:
service: 'dex-consensus'
consensus_type: 'fpc'
k_value: '1'
mode: 'development'
# Quantum-Resistant Signatures
- job_name: 'dex-quantum'
metrics_path: '/metrics/quantum'
static_configs:
- targets: ['lux-dex-node:8080']
labels:
service: 'dex-quantum'
signature_type: 'corona-bls'
# ============== DEX INFRASTRUCTURE METRICS ==============
# DEX PostgreSQL (TimescaleDB)
- job_name: 'dex-postgres'
static_configs:
- targets: ['lux-dex-db:5432']
labels:
service: 'dex-database'
db_type: 'timescaledb'
# DEX Redis Cache
- job_name: 'dex-redis'
static_configs:
- targets: ['lux-dex-redis:6379']
labels:
service: 'dex-cache'
cache_type: 'redis'
# DEX Nginx Reverse Proxy
- job_name: 'dex-nginx'
static_configs:
- targets: ['lux-dex-nginx:80']
labels:
service: 'dex-proxy'
proxy_type: 'nginx'
# ============== PERFORMANCE METRICS ==============
# Ultra-High Frequency Trading Metrics
- job_name: 'dex-hft'
metrics_path: '/metrics/hft'
scrape_interval: 100ms # Sub-second scraping for HFT
static_configs:
- targets: ['lux-dex-node:8080']
labels:
service: 'dex-hft'
performance: '100M-trades-per-sec'
# DPDK Kernel Bypass Metrics
- job_name: 'dex-dpdk'
metrics_path: '/metrics/dpdk'
static_configs:
- targets: ['lux-dex-node:8080']
labels:
service: 'dex-dpdk'
bypass_type: 'kernel-bypass'
latency_target: '100ns'
# RDMA State Replication Metrics
- job_name: 'dex-rdma'
metrics_path: '/metrics/rdma'
static_configs:
- targets: ['lux-dex-node:8080']
labels:
service: 'dex-rdma'
replication_type: 'zero-copy'
latency_target: '500ns'
# GPU Acceleration Metrics (MLX/CUDA)
- job_name: 'dex-gpu'
metrics_path: '/metrics/gpu'
static_configs:
- targets: ['lux-dex-node:8080']
labels:
service: 'dex-gpu'
acceleration: 'mlx-cuda'
# Recording Rules for DEX Performance
rule_files:
- '/etc/prometheus/dex-rules.yml'
# Alerting Rules for DEX
alerting:
alertmanagers:
- static_configs:
- targets:
- alertmanager:9093