twitter / rezolus

Systems performance telemetry
Apache License 2.0
1.56k stars 116 forks source link

Adding srtt metric in the TCP sampler via BPF #238

Closed WUMUXIAN closed 3 years ago

WUMUXIAN commented 3 years ago

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 commented 3 years ago

CLA assistant check
All committers have signed the CLA.

brayniac commented 3 years ago

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

WUMUXIAN commented 3 years ago

Addressed the comments