Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding srtt metric in the TCP sampler via BPF #238

Merged
merged 3 commits into from
Aug 26, 2021

Conversation

WUMUXIAN
Copy link
Contributor

Problem

Currently the TCP sampler does not support TCP RTT (round-trip time) metric, which is useful to analyse the quality of the network.

Solution

Introduced a new kprobe using BPF and collect RTT metric in a histogram in kernel space, and export it to the TCP sampler.

Result

The metric is supported as 'tcp/srtt' metric

@CLAassistant
Copy link

CLAassistant commented Aug 25, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@brayniac brayniac left a comment

Choose a reason for hiding this comment

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

Overall this looks great and will be an excellent addition to Rezolus. Please be sure to sign the CLA and address the feedback in this review. Once those are done and tests are passing, we can merge this.

configs/tcptest.toml Outdated Show resolved Hide resolved
src/samplers/tcp/mod.rs Outdated Show resolved Hide resolved
@brayniac
Copy link
Contributor

Note: the cargo audit test failure is unrelated to this change and will not block merge.

@WUMUXIAN
Copy link
Contributor Author

Addressed the comments

Copy link
Contributor

@brayniac brayniac left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks again for adding this!

@brayniac brayniac merged commit a5957ec into twitter:master Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants