Skip to content

fix(flush-sets): avoids attempting to send more than one data type to the same metric #1

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

Merged
merged 2 commits into from
May 12, 2018

Conversation

joeycumines
Copy link

I am sending UUID values in a set, in order to get a count of running instances. This currently spams 400 logs / may never work (depending on what is the first value seen by influx db, a string or an int).

This PR adds a log method for the response details on v1.4 flush error (outputs one line, contains headers, which contains influxdb error messages, very useful), and fixes the issue with sending more than one type of measurement by verifying that all values in the set will actually be sent as valid integers / are safe to send, before actually sending them (excluding them all if they contain one or more non-integer value, for example).

… prints out headers (that have influxdb errors)
…(e.g. unique strings) as it will fail / not work properly
@sioomy
Copy link
Owner

sioomy commented May 12, 2018

Thank you for support this !

@sioomy sioomy merged commit 6582a84 into sioomy:master May 12, 2018
@joeycumines joeycumines deleted the fix_unique_strings_exclude branch May 13, 2018 10:30
@joeycumines
Copy link
Author

No worries @sioomy

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