-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
collectd timestamps are always 0 #1051
Comments
Try to use high resolution timestamp but if it's 0, fall back to unix timestamp. Collectd timestamps are uint64 and influxdb uses int64. Change to use type conversion instead of converting to string and then parsing the string back to int64. Also, test if the collectd timestamp is too large for influxdb. If it is, wrap around and log an error message the first time but don't fill the log with messages for every entry thereafter. Move packet parsing code into its own function so it can be unit tested. Add unit tests to for packets using high resolution and unix timestamps.
Seems like there is a problem with this patch, the timestamp are stored in seconds where influx wants milliseconds. I am using collectd 5.4.0 with the latest collectd. |
I see the same behavior as renchap... time is stored in seconds rather than milliseconds. Seen in collectd 5.1 and 5.4 |
This is reported on irc and there's a pcap file that captures the collectd payload here
The text was updated successfully, but these errors were encountered: