Can Multidimensional Hash Values be inserted into InfluxDB? -


in influxdb, can post multidimensional hash values database?

for example, hash:

{     "field1": "value1",     "field2": {         "field2a": "value2a",         "field3a": "value3a"     } } 

if can, how do this? when try via http admin interface, neither errors out or returns success.

multidimensional values not supported influxdb. points have fields set of key-value pairs. currently, values can of type float, integer, boolean, or string. influxdb has no concept of nested key-values. relevant source here.

a workaround store json string literal escaping double quote characters (e.g. \"). implementing whatever functionality required in client.

curl -h -xpost 'http://localhost:8086/write' -d ' {     "database": "test",         "retentionpolicy": "default",         "points": [             {                 "name": "json_blob",                 "tags": {                     "tag1": "tag-value-a",                     "tag2": "tag-value-b"                 },                 "fields": {                     "value": "{\"field1\":\"value1\",\"field2\":{\"field2a\":\"value2a\",\"field3a\":"value3a\"}}"             }         }     ] }' 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -