telegraf icon indicating copy to clipboard operation
telegraf copied to clipboard

Feature Request : name_key argument in json input for dynamic measurement names.

Open gaurav-moonfroglabs opened this issue 10 years ago • 8 comments

Is there a way to override the influxdb measurement name in json input while using that input in tcp listner. There is an option to override in config. Also in influx format we can send measurement name. Is it possible in json format too.

gaurav-moonfroglabs avatar Apr 27 '16 16:04 gaurav-moonfroglabs

There isn't, you can only do it via the configuration file by specifying name_override under the tcp listener, like this:

[[inputs.tcp_listener]]
  ...
  name_override = "my_metrics"

sparrc avatar Apr 27 '16 16:04 sparrc

If this doesn't fit your use-case could you change this issue to a feature request for a name_key argument on the json data format? And explain what you need and would like to see with that feature.

sparrc avatar Apr 27 '16 16:04 sparrc

okay, yes i have already gone through this name_override tag. But that won't make it dynamic. If i want to send multiple api metrics via tcp for different measurements this won't give me dynamic measurement.

Okay i will put the feature request in for the above.

gaurav-moonfroglabs avatar Apr 27 '16 16:04 gaurav-moonfroglabs

How do i change it to feature request... dont see anywhere to attach label to this issue or in new issues.

gaurav-moonfroglabs avatar Apr 27 '16 17:04 gaurav-moonfroglabs

I just meant in the title, and to give details on the feature you would like

sparrc avatar Apr 27 '16 17:04 sparrc

okay thanks

gaurav-moonfroglabs avatar Apr 27 '16 17:04 gaurav-moonfroglabs

Hi,

feature req: parse and fetch measurement name from json fields

We have multiple input format available in telegraf. In influx format we can specify the measurement/series name while sending data. Which makes it pretty dynamic to send data of multiple monitoring type on single tcp listener.

I tried same thing in json. But in json we cannot specify the measurement name and can only specify in config. So i want to ask if possible i would love to see a feature to parse and fetch measurement name from json fields.

gaurav-moonfroglabs avatar Apr 27 '16 17:04 gaurav-moonfroglabs

closing in favor of https://github.com/influxdata/telegraf/issues/1363

sparrc avatar Jun 10 '16 16:06 sparrc