Grafana - use custom variable as regex in query


we have prometheus datasource and I’m stuck at trying to use custom variable with few values as comma separated values, I wanted to use it to replace as regex in the label_values(job=~$"{eks_cluster:regex}"), but i get the error templating variables could not be initialized.
Following are the screenshots to show what I’m trying to achieve

1 Like