-
- Downloads
Fix snmp overriding of auto-configured table fields (#4208)
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.
Showing
- CHANGELOG.md 1 addition, 0 deletionsCHANGELOG.md
- plugins/inputs/snmp/snmp.go 11 additions, 1 deletionplugins/inputs/snmp/snmp.go
- plugins/inputs/snmp/snmp_mocks_generate.go 2 additions, 1 deletionplugins/inputs/snmp/snmp_mocks_generate.go
- plugins/inputs/snmp/snmp_mocks_test.go 3 additions, 2 deletionsplugins/inputs/snmp/snmp_mocks_test.go
- plugins/inputs/snmp/snmp_test.go 11 additions, 6 deletionsplugins/inputs/snmp/snmp_test.go
- plugins/inputs/snmp/testdata/test.mib 7 additions, 0 deletionsplugins/inputs/snmp/testdata/test.mib
Loading
Please register or sign in to comment