feat: live bandwidth tracking (RX/TX MB/s + avg response size)

- Track data_received / data_sent bytes in live metric aggregation
- Compute bwInMBps, bwOutMBps, avgRespKB per second
- Bandwidth row below stats strip: ↓ RX | ↑ TX | Avg size
- RX colour: green <20 MB/s, yellow 20-50 MB/s, red >50 MB/s
- Warning banner when RX >20 MB/s: bandwidth may cause p99 spikes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-01 20:39:16 +02:00
parent 175ba3ec7a
commit d3991416e8
4 changed files with 99 additions and 2 deletions

View File

@@ -176,6 +176,27 @@
</div>
</div>
<!-- Bandwidth row -->
<div class="bw-row" id="bw-row">
<div class="bw-item">
<span class="bw-label">&#x2193; RX</span>
<span class="bw-val" id="bw-in">-- MB/s</span>
</div>
<div class="bw-divider"></div>
<div class="bw-item">
<span class="bw-label">&#x2191; TX</span>
<span class="bw-val" id="bw-out">-- MB/s</span>
</div>
<div class="bw-divider"></div>
<div class="bw-item">
<span class="bw-label">Avg size</span>
<span class="bw-val" id="bw-size">-- KB</span>
</div>
<div id="bw-warning" class="bw-warning" style="display:none">
&#9888; High bandwidth — may be causing p99 spikes
</div>
</div>
<!-- Threshold results -->
<div id="threshold-banner" style="display:none"></div>
</div>