In telegraf, Is there a way to convert this string "4h02m30s" to duration or integer

I was thinking of getting the values with regex but then it doesn’t seem that telegraf has math capabilities for me to do conversion with.

Any ideas?

Hi @cdemi,

Thanks for joining our community.

Unfortunately, I cannot think of any way to process this string, within Telegraf, to an integer value.

I believe you would need to write your own processor plugin and compile Telegraf yourself to make this work.