Influx index and high cardinality



I have a high throughput system. I found out that since many events has the same timestamp, influx had overwritten many events.

Therefore I tried moving from milliseconds to nanoseconds, but since I am using JAVA, I couldn’t get the real clock based nanoseconds. (posted a question here).

I came up with this solution: I created a new tag called “descriptor” which I insert a random number between 1-1000. These values are fixed and the probability for the same timestamp with the same random descriptor value is very low. This fixes my problem and I can see all the events.

My question is wether it is OK to use these 1000 values - since this is a tag and I understand it can mess up my index and my performance?

Regards, Ido