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

Enhance "sources" information with NtpData response #106

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rbott
Copy link

@rbott rbott commented Jan 7, 2025

We would like to extend source information with some peer details which can be retrieved via the NtpData resource.

This PR extends the "sources" information with additional peer/source information from the NtpData response. Namely it adds:

  • Offset
  • Peer Delay
  • Peer Dispersion
  • Peer Response Time
  • Peer Jitter Asymmetry

What do you think about the implementation? Since the current main build does not work (crashes with logging issues when set to debug log level) we developed/tested this against the latest release tag.

collector/sources.go Outdated Show resolved Hide resolved
@SuperQ
Copy link
Owner

SuperQ commented Jan 7, 2025

Since the current main build does not work (crashes with logging issues when set to debug log level) we developed/tested this against the latest release tag.

Can you open an issue about this? I am unable to reproduce this, running with --log.level=debug works fine for me.

@rbott rbott force-pushed the add_ntpdata_details branch 2 times, most recently from d48359c to 74800d0 Compare January 7, 2025 14:48
@rbott
Copy link
Author

rbott commented Jan 7, 2025

I have rebased this PR against the main branch. Actually it crashes only when --log.level is set to debug. I will open a separate issue for that :-)

main.go Outdated Show resolved Hide resolved
Copy link
Owner

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

Please also update the README.md --help output.

@SuperQ
Copy link
Owner

SuperQ commented Jan 8, 2025

A couple of minor nits, otherwise looks great.

This commit extends the "sources" information with additional peer/source
information from the NtpData response. Namely it adds:

- Offset
- Peer Delay
- Peer Dispersion
- Peer Response Time
- Peer Jitter Asymmetry

The additional data collection is hidden behind a new flag
`--collector.sources-with-ntpdata` which defaults to `false`

Signed-off-by: Rudolph Bott <[email protected]>
@rbott rbott force-pushed the add_ntpdata_details branch from 74800d0 to 485bc99 Compare January 9, 2025 08:22
@rbott
Copy link
Author

rbott commented Jan 9, 2025

Both nits have been addressed, thanks for reviewing so quickly :-)

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.

2 participants