Skip to content

Conversation

@renaynay
Copy link
Member

This metric will be able to help us track BN shrex serving throughput by request type (nd, eds, and soon will be sample).

In grafana, we can visualise serving throughput in MB/s with a panel via the following query:

shrex-nd

rate(shrex_payload_served_bytes_sum{protocol="nd_v0"}[1m]) / 1024 / 1024

shrex-eds

rate(shrex_payload_served_bytes_sum{protocol="nd_v0"}[1m]) / 1024 / 1024

@renaynay renaynay self-assigned this Oct 24, 2025
@renaynay renaynay added the area:metrics Related to measuring/collecting node metrics label Oct 24, 2025
@renaynay renaynay added the shrex For issues and PRs related to shrex protocol label Oct 24, 2025
@renaynay renaynay requested a review from walldiss October 28, 2025 10:04
@renaynay renaynay requested a review from walldiss October 31, 2025 15:25
vgonkivs
vgonkivs previously approved these changes Nov 3, 2025
if err != nil {
log.Errorw("sending response status", "err", err)
return statusSendStatusErr
return statusSendStatusErr, 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return written on error too

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done d827ff5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:metrics Related to measuring/collecting node metrics kind:chore shrex For issues and PRs related to shrex protocol

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants