Where do the metric prefix paths get converted in Telegraf

Hi,

Recently I’ve been playing around with sending metrics using the ouputs.http plugin and noticed that my metrics prefixes are being replaced.

Example:
prod.topic_sender.machine_metrics.win_mem.Pages.persec

Is converted to:
prod.topic.sender.machine.metrics.win.mem.Pages.persec

I noticed that in the outputs.wavefront plugin there is a convert paths bool option but not in outputs.http.

Where is this conversion taking place or how can I add the convert paths functionality to outputs.http?
Note, I’m using the data_format = wavefront option.

Thanks all!

I guess more specifically,
When I use data_format = wavefront where is the code located that converts the metrics into the wavefront data format?

I was trying to figure it out and it looks like it could be here:
github.com\influxdata\telegraf\plugins\parsers\wavefront
But I don’t see where the code that converts _ to .

Thoughts?

Found it!

github.com\influxdata\telegraf\plugins\serializers\wavefront\wavefront.go
Line 41

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.