Where do the metric prefix paths get converted in Telegraf


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


Is converted to:

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:
But I don’t see where the code that converts _ to .


Found it!

Line 41

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