How to pass parameters to a dashboard and then access it in panels?

Hi,
I have embedded my Grafana dashboard in my Angular project. Now, I want to pass parameters to Grafana Dashboard from my frontend. Can anyone tell me is it possible to do so and if yes then how?

Thanks in advance!

Hello @abhi2001agarwal,

You can reference Template Variables through the URL in order to pass parameters.

Check the online example grafana dashboard as a reference:
https://play.grafana.org/d/rUpVRdamz/dashboard-links-with-variables?orgId=1&var-app=All&var-server=All&var-interval=1h

As you can see, there are several query paramters given like “orgId”,“var-app”,“var-server” and so on. Everything with the prefix “var-” are actually dashboard template variables which you can use in your dashboard panels or queries.