Grafana multiple key value pair in templates

Hi All,

I am using Prometheus datasource where i have “Customer ID” as part of metric name, and I am using Regex to dynamically create graphs.
My requirement is to show “Customer Name” in the dropdown variable and replace the metrics with “Customer ID”.
Since Customer Name is not part of metrics, I need to store Customer name and id mapping somewhere as JSON or any other datasource and retrieve it.

I appreciate any suggestions to help achieve it.

Hi @raghug, I have run into a similar problem. Did you end up finding a solution? Thank you.