I think this is more generally a Templating question, but my use case is for Singlestat Panel.
So I want to show a Singlestat Panel with title [[app_names]]. But I do not repeat the Panel over [[app_names]], but over [[app_ids]]. Yet, every app_id maps to only one app_name.
Can I iterate using Repeat Panel over [[app_ids]], but get a value of [[app_names]] for each Panel? How would I do this? Thanks
Hi! It’s impossible now to map values from one variable to another. You can try to solve your problem by using scripted dashboard, but it requires basic JS knowledge.
Thanks for your response. I think scripted dashboards may be a solution for me, but I never figured out how to add a Prometheus Data Source to them. When I export a Grafana Dashboard to JSON, it includes a line like this: