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

fix: redundant zfs pool tag #10871

Merged
merged 4 commits into from
Mar 29, 2022
Merged

Conversation

powersj
Copy link
Contributor

@powersj powersj commented Mar 22, 2022

If a ZFS pool has multiple datasets it will show up in the ZFS pool list
that Telegraf maintains. When trying to produce the ZFS pools tag this
will result in a pool name showing up more than once. This creates a
unique set of pool names for the tag.

Fixes: #10837

If a ZFS pool has multiple datasets it will show up in the ZFS pool list
that Telegraf maintains. When trying to produce the ZFS pools tag this
will result in a pool name showing up more than once. This creates a
unique set of pool names for the tag.

Fixes: influxdata#10837
@telegraf-tiger telegraf-tiger bot added the fix pr to fix corresponding bug label Mar 22, 2022
@powersj powersj added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Mar 24, 2022
Copy link
Contributor

@reimda reimda left a comment

Choose a reason for hiding this comment

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

Let's add a unit test for this

@powersj
Copy link
Contributor Author

powersj commented Mar 25, 2022

Let's add a unit test for this

@reimda Test case added

@reimda reimda merged commit b9151ff into influxdata:master Mar 29, 2022
MyaLongmire pushed a commit that referenced this pull request Apr 6, 2022
MyaLongmire pushed a commit that referenced this pull request Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

inputs.zfs: pools tag wrongly populated
5 participants