Convert tags from Upper case to Lower Case

I have collected data from multiple APIs which are giving almost similar data but the tag values differ.
e.g. “Bitcoin” and “bitcoin”
I am visualizing the data on Grafana and made a variable that will be using the tag value and used in showing different stats in some graphs.

Is there any way to convert Uppercase to lowercase?

Note : The tag values can be alphanumeric

Thank you!

Hello @itsksaurabh,

Thanks for your questions. Try giving the Stream Processor Plugin a try? The strings plugin maps certain go string functions onto measurement, tag, and field values. Values can be modified in place or stored in another key.

Also it’s worth knowing about the Rename Telegraf Processor Plugin as well.

1 Like