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 snmp overriding of auto-configured table fields #4208

Merged
merged 1 commit into from
May 30, 2018
Merged

fix snmp overriding of auto-configured table fields #4208

merged 1 commit into from
May 30, 2018

Conversation

phemmer
Copy link
Contributor

@phemmer phemmer commented May 30, 2018

Whenever the snmp plugin was configured with a table with automatic field discovery, if one of those fields was explicitly overridden in the config and the value of is_tag was changed, the field would be duplicated, once as a tag & once as a field.
This change fixes the behavior so that if a field is explicitly configured, automatic table field discovery doesn't touch it.

Fixes #4203

Required for all PRs:

  • Signed CLA.
  • Has appropriate unit tests.

Whenever the snmp plugin was configured with a table with automatic field discovery, if one of those fields was explicitly overridden in the config and the value of is_tag was changed, the field would be duplicated, once as a tag & once as a field.
This change fixes the behavior so that if a field is explicitly configured, automatic table field discovery doesn't touch it.
@danielnelson danielnelson added this to the 1.7.0 milestone May 30, 2018
@danielnelson danielnelson added the fix pr to fix corresponding bug label May 30, 2018
@danielnelson danielnelson modified the milestones: 1.7.0, 1.6.4 May 30, 2018
@danielnelson danielnelson merged commit 5ae2b02 into influxdata:master May 30, 2018
danielnelson pushed a commit that referenced this pull request Jun 1, 2018
Whenever the snmp plugin was configured with a table with automatic field
discovery, if one of those fields was explicitly overridden in the config and
the value of is_tag was changed, the field would be duplicated, once as a tag
& once as a field.

This change fixes the behavior so that if a field is explicitly configured,
automatic table field discovery doesn't touch it.

(cherry picked from commit 5ae2b02)
maxunt pushed a commit that referenced this pull request Jun 26, 2018
Whenever the snmp plugin was configured with a table with automatic field
discovery, if one of those fields was explicitly overridden in the config and
the value of is_tag was changed, the field would be duplicated, once as a tag
& once as a field.

This change fixes the behavior so that if a field is explicitly configured,
automatic table field discovery doesn't touch it.
otherpirate pushed a commit to otherpirate/telegraf that referenced this pull request Mar 15, 2019
Whenever the snmp plugin was configured with a table with automatic field
discovery, if one of those fields was explicitly overridden in the config and
the value of is_tag was changed, the field would be duplicated, once as a tag
& once as a field.

This change fixes the behavior so that if a field is explicitly configured,
automatic table field discovery doesn't touch it.
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

is_tag in table does not suppress field value
2 participants