Hi Camero, I understand this is not optimal , was wondering is we already the option to setup the tags in telegraf is present then let the user choose non sting as well. For me i need to write a different consumer application just because of this.
It will be great to have the option build in in telegraf . Hope this makes sense. Regards, Catalin On Tuesday, August 2, 2016 at 10:22:24 AM UTC+1, [email protected] wrote: > > Hi Catalin, the JSON parser currently does not support this, but there is > no reason that it couldn't be modified to support it. > > But just to be clear, non-string tags are NOT supported by influxdb > line-protocol, so the integers would need to be converted into strings. > > Converting integers or floats into string tags is a bit dangerous in terms > of series cardinality. InfluxDB does not support unlimited unique string > tags, so each additional unique string will increase your memory > consumption. In the case of integers and floats, there are obviously an > infinite number of possible values, so you would need to be careful that > your particular use-case does not have the possibility of infinite values. > > On Saturday, July 30, 2016 at 5:40:54 PM UTC+1, Catalin Petrescu wrote: > > hi all, > > > > Wondering if there is any plan to support non string values as tags in > telegraf kafka_consumers. > > > > My issue is i have the following kafka message in json: > > { > > "tos": 192, > > "as_dst": 1, > > "as_src": 1, > > "mask_dst": 32, > > "local_pref": 0, > > "net_dst": "10.1.1.2", > > "as_path": "", > > "peer_ip_dst": "", > > "peer_as_src": 0, > > "mask_src": 32, > > "net_src": "10.1.1.1", > > "peer_as_dst": 0, > > "peer_ip_src": "10.255.255.3", > > "iface_in": 526, > > "packets": 4, > > "bytes": 306 > > } > > > > and need to set tags for non string values ( example: "as_src": 1, > "peer_as_src": 0 ) . > > > > Looking at : > https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md > , strings are ignored unless specified as a tag_key . Any reason integers > cannot be used as tags. > > > > Regards, > > Catalin > > -- Remember to include the InfluxDB version number with all issue reports --- You received this message because you are subscribed to the Google Groups "InfluxDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/2c4a64f1-136e-4fc9-a00f-c65535f468a8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
