Skip to content

feat: expose RTT jitter in Statistics struct#158

Open
davidebettio wants to merge 1 commit into
prometheus-community:mainfrom
davidebettio:add-jitter-calc-to-stats
Open

feat: expose RTT jitter in Statistics struct#158
davidebettio wants to merge 1 commit into
prometheus-community:mainfrom
davidebettio:add-jitter-calc-to-stats

Conversation

@davidebettio
Copy link
Copy Markdown

This PR adds support for tracking RTT jitter in the Pinger struct and exposes it via the Statistics struct.

What’s included:

  • Added jitter calculation based on mean absolute differences between consecutive RTTs.
  • New field Jitter time.Duration in both Pinger and Statistics.
  • Automatically updated during updateStatistics if RecordRtts is enabled.
  • Some unit tests to verifying the correctness of jitter computation.

Signed-off-by: Davide Bettio <davide.bettio@gmail.com>
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.

1 participant