Aggregate data rates at vhost level for all protocols#1699
Aggregate data rates at vhost level for all protocols#1699kickster97 wants to merge 3 commits intomainfrom
Conversation
AMQP and MQTT clients now report bytes to vhost counters alongside their per-connection tracking. The overview endpoint reads byte rates from vhost stats instead of summing connections, ensuring HTTP traffic is included. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
6db52ac to
a83d4ab
Compare
carlhoerberg
left a comment
There was a problem hiding this comment.
Did it have any performance impact?
|
HTTP revc/send doesn't include the whole request/response size, but i guess that's ok. |
|
Can we add specs? Ideally specs that break if we add additional protocols and miss this. |
PR Review: Vhost-level byte rate tracking1. Test logic flaw in "all protocols should aggregate byte counts to vhost level" (
|
WHAT is this pull request doing?
Track data rates at vhost level across all protocols
Previously, byte rates in the overview were aggregated from per-connection stats, which meant HTTP API traffic was invisible in the data rates graph since HTTP has no persistent connections. This adds
recv_octandsend_octcounters to thevhost, fed by all three protocols: AMQP and MQTT clients bubble up their per-connection byte counts to the vhost alongside existing connection-level tracking, and HTTP reports bytes directly to the vhost. The overview endpoint now reads byte rates from the vhost instead of summing connections, giving a complete picture of all traffic.Based off discussion in #1682
HOW can this pull request be tested?
specs to come