Skip to content

chore(inputs.ntpq): Cleanup existing plugin#11575

Merged
srebhan merged 10 commits intoinfluxdata:masterfrom
srebhan:ntpq_cleanup
Aug 1, 2022
Merged

chore(inputs.ntpq): Cleanup existing plugin#11575
srebhan merged 10 commits intoinfluxdata:masterfrom
srebhan:ntpq_cleanup

Conversation

@srebhan
Copy link
Copy Markdown
Member

@srebhan srebhan commented Aug 1, 2022

This is an initial cleanup in order to be able to implement more features (see #7840) easily. As a summary, the PR first simplifies the Gather() function and the construction of the ntpq command. Furthermore, it moves all test-case data out into actual test-cases similar to the ones in parsers/json. This allows to easily add test-cases and keeps the data separate from the code.

@telegraf-tiger telegraf-tiger bot added chore plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Aug 1, 2022
@telegraf-tiger
Copy link
Copy Markdown
Contributor

telegraf-tiger bot commented Aug 1, 2022

Copy link
Copy Markdown
Contributor

@powersj powersj left a comment

Choose a reason for hiding this comment

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

This looks much, much cleaner, thank you!

@srebhan srebhan merged commit 9f57f94 into influxdata:master Aug 1, 2022
reimda pushed a commit that referenced this pull request Aug 15, 2022
@srebhan srebhan deleted the ntpq_cleanup branch November 7, 2022 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants