I have some disk stats getting pulled by my server (Prometheus data source)
The device names are like dm-0,dm-1,dm-2 and so on. My graph renames the legend to, for example: $device - Read IOPS.
Now, these dm-X devices have more meaningful names like (dm0 → snapshot, dm-1 → data, dm2 → temp), would it be possible to rename the graph fields mapping using regex matching or some other means so for every legend that contains “dm-0” it gets automatically translated to “snapshot”?
Current Legend:
dm-0 Read IOPs
dm-0 Write IOPs
dm-1 Read IOPs
dm-1 Write IOPsDesired Legend:
snapshot Read IOPs
snapshot Write IOPs
data Read IOPs
data Write IOPs
Example Graph: