NationalSecurityAgency / timely

Accumulo backed time series database
https://code.nsa.gov/timely/
Apache License 2.0
377 stars 108 forks source link

Python client and analytic code should retain metrics with duplicate timestamps #167

Closed billoley closed 6 years ago

billoley commented 6 years ago

Especially when retrieving metrics with large numbers of values for a tag, it's possible to get multiple rows (metrics) that have the same timestamp. When the timestamp is truncated to seconds and the data pivoted for resampling, we are losing rows with duplicate timestamps.

Adding code into TimelyMetric that adds microseconds onto duplicate timestamps will allow downstream code to work as intended while retaining what were previously seen as duplicate timestamps.