If you are just trying to change the label for better display on dashboard, try using Grafana’s transform functionality:
- Click on
Transform, and selectRename by regex. - Use a regex match and replace. For example, let’s say your label is “unwanted=wanted”, you can use regex matcher
{(?:.*)="(.*)"}and$1as the replacement.