Handling of duplicate points: How to add a uniq tag, increase the timestamp

Hello

I am facing the issue that Influx detects duplicate points. Solution are in the official documentation these are:

  • Introduce an arbitrary new tag to enforce uniqueness.
  • Increment the timestamp by a nanosecond.

I’d like to go for one or the other but the documentation is unfortunately missing to describe how to archive the one or the other.

Introduce an arbitrary new tag to enforce uniqueness.
Ok I need to add a tag, according to the documentation uniq=1 then 2 … how would I get the increment in numbers? Since my timestamp is only on seconds I get many point that the same time…

Increment the timestamp by a nanosecond.
I’d love to do this but even which the help of aunt google I could not find out how to do this.

So if someone knows that I’d be very happy to learn it.

Thanks a lot !
Michael