HTTP API, Metrics & Fleet
When --gui or --api-enabled true is active, DodaRig exposes a lightweight Axum HTTP & WebSocket server for dashboards, Prometheus scraping, and multi-rig fleet control.
HTTP & WebSocket Endpoints
| Endpoint | Auth | Description |
|---|---|---|
GET / | Public | Embedded Web GUI Dashboard |
GET /ws | Public | Live 1-second WebSocket telemetry stream |
GET /metrics | Public | Prometheus / OpenMetrics scrape endpoint |
GET /health | Public | Health check ({"status":"ok"}) |
GET /api/summary | Public | JSON summary (hashrate, shares, uptime, pool) |
GET /api/threads | Public | Per-thread hashrate breakdown |
GET /api/profiles | Public | List saved coin/wallet profiles & active profile |
GET /api/proxy/connections | Public | Active downstream Stratum proxy sessions |
GET /api/gpu/devices | Public | Detected CUDA/OpenCL devices |
GET /api/gpu/health | Public | GPU clocks, temperature, power (W), fan speed (%) via NVML |
GET /api/fleet/rigs | Public | Polled status of all registered fleet rigs |
GET /api/fleet/alerts | Public | Recent fleet alerts (online/offline transitions) |
POST /api/profiles | Token* | Save a new coin/wallet profile to config.toml |
GET/PUT /api/config | Token* | View or queue runtime config updates |
POST /api/restart | Token* | Trigger graceful shutdown for supervisor restart |
POST /api/stop | Token* | Graceful miner shutdown |
*Token required when api.access_token is set (Authorization: Bearer <token>).
Thermal & Hashrate Webhook Alerts
DodaRig’s AlertManager monitors:
- CPU / System Temperatures via
sysinfosensors (alerts when any sensor exceedsmax_temp, default85.0°C). - Low Hashrate & Zero Submitted Shares.
- NVIDIA GPU Telemetry via
nvml-wrapper(temperature, power draw in watts, fan speed percentage).
Pass --fleet-alert-webhook https://your-webhook-url to receive JSON webhook notifications automatically.
Related Documentation
- CLI & Web GUI Reference —
--api-address,--api-port,--api-access-token. - Multi-Coin Profiles & Setup Wizard — Using
/api/profilesand the GUI Profiles tab. - Troubleshooting & FAQ — Monitoring a Linux rig from a Windows browser.