How to store variable number of values in InfluxDB?

influxdb

#1

I have a sensor which measures values with different length, for example:

T1: [ (2, 2), (1,3) ]

T2: [ (1,3) ]

T3: [ (3,2), (2,3), (5,2) ]

Note: suppose maximum array length is 20.

What is best practice to store data like this in InfluxDB.


#2

The first thing that comes to mind is to split it up into individual values and tag them based on their position in the original measurement, since your array is small (max_count=20).

It would help if you explain how you plan to query the data / make use of it.