I have a series list, which contains a list of UUIDs. Examples:
monitoring.campaigns.*
includes but is not limited to :
monitoring.campaigns.69dc1f77-980e-4b49-a154-67242c6de0f5
monitoring.campaigns.9bd516d4-d357-46a8-84fa-d256fc3d790f
monitoring.campaigns.408c49e9-e8e0-4952-993d-1868f61e7055
monitoring.campaigns.61a82e49-0ec3-4300-862e-a8ef41be63a5
monitoring.campaigns.4684e048-5942-47ff-ad6d-a3fc991cd715
Each campaign has more human interpretable name, not stored in graphite sadly, so i have to map these manually.
69dc1f77-980e-4b49-a154-67242c6de0f5` => Black Friday Campaign
9bd516d4-d357-46a8-84fa-d256fc3d790f` => Cyber Monday Campaign
408c49e9-e8e0-4952-993d-1868f61e7055` => Fathers Day Campaign
61a82e49-0ec3-4300-862e-a8ef41be63a5` => Mothers Day Campaign
4684e048-5942-47ff-ad6d-a3fc991cd715` => Back to school Campaign
I also have a grafana dashboard which has rows which repeats per Campaign UUID, which i have set as a variable ($CampaignUUID). In each row there is a panel, which graphs the values of the UUID overtime.
For each of these panels, I want to have an alias which maps the UUIDs to the more human interpretable name. I have tried something like the below, but with no success so far:
AliasSub(AliasSub(AliasSub(AliasSub(AliasSub(monitoring.campaigns.$CampaignUUID,"69dc1f77-980e-4b49-a154-67242c6de0f5","Black Friday Campaign"),"9bd516d4-d357-46a8-84fa-d256fc3d790f","Cyber Monday Campaign"), "408c49e9-e8e0-4952-993d-1868f61e7055", "Fathers Day Campaign"), "61a82e49-0ec3-4300-862e-a8ef41be63a5", "Mothers Day Campaign"), "4684e048-5942-47ff-ad6d-a3fc991cd715", "Back to school Campaign")
I would like that for the row for Campaign with the UUID of 69dc1f77-980e-4b49-a154-67242c6de0f5
, the graph would show a line with the value of “Black Friday Campaign”.
The row for the campaign with the UUID of 9bd516d4-d357-46a8-84fa-d256fc3d790f
the graph would show a line with value of “Cyber Monday Campaign” etc.
Is this even possible any help would be appreciated.