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

skip disk tags with no value #45

Merged
merged 1 commit into from
Jul 5, 2015
Merged

Conversation

jhofeditz
Copy link
Contributor

This is a fix for the following error seen in telegraf.log and a corresponding 400 response from influxdb:
2015/07/03 07:00:38 Error in plugins: unable to parse 'io_reads,host=test_host,name=md0,serial= value=1072': missing tag value

Influxdb 0.9.1 now rejects writes with empty tag values. This patch skips tags with no values. A disk serial number does not exist for many devices including md raid arrays and VMs. Other plugins may also want to check for empty tags.

This is my very first golang patch. Please feel free to fix if this is not the best way to do this.

Influxdb 0.9.1 now rejects writes with empty tag values. This patch skips tags with no values. A disk serial number does not exist for many devices including md raid arrays and VMs. Other plugins may also want to check for empty tags.
@toddboom
Copy link
Contributor

toddboom commented Jul 5, 2015

@jhofeditz nice work! it might be good to add a test for this, but i'll go ahead and merge this in for now since it's probably causing failed writes in those situations. feel free to open a separate PR for a test if you're interested in taking a crack at it!

toddboom added a commit that referenced this pull request Jul 5, 2015
skip disk tags with no value
@toddboom toddboom merged commit 1d8e647 into influxdata:master Jul 5, 2015
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