I want to display panel title in grafana using variables not from the same dashboard , but the variables from previous dashboard
please see the attached diagram which explains my problem
I want to display panel title in grafana using variables not from the same dashboard , but the variables from previous dashboard
please see the attached diagram which explains my problem
Hi,
If you configure a variable in dashboard 2 you can bootstrap that with a value thru the url. See http://docs.grafana.org/reference/templating/#url-state.
Marcus
so you have any example for it Iam not sure how I can do it
Have a look at this example dashboard: http://play.grafana.org/d/000000143/templating?orgId=1&var-app=backend&var-server=backend_01&var-interval=1h
As you see in the link there are parts in the url in the form var-<variable name>=<variable value>. Those will take effect when the dashboard are loaded. If you change
&var-server=backend_02` url and load that in a browser you’ll notice that the dashboard shows metrics for server=backend_02 instead of backend_01. The panel at the bottom now only have one panel with title backend_02.
You can also have a look at how the server variable are configured by clicking on the $server row: http://play.grafana.org/d/000000143/templating?editview=templating&orgId=1&var-app=backend&var-server[]=backend_02&var-interval=1h
To apply this for to your use case I think that you want to define an area variable in dashboard 2 and use $area in panel title to render the name of the area. Then you can link to that dashboard with a querystring containing var-area=<area name>
which will change the value of $area. There’s a lot of different options for variables and I recommend you to read through the documentation page I referenced earlier.
Marcus