Grafana.ini root_url configure to pass query parameter or path variable


Is it possible to pass query parameter or path variable along with subpath in roo_url grafana.ini configuration?
For Example:
root_url = %(protocol)s://%(domain)s:%(http_port)s:/grafana?customorgId=“1234”
root_url = %(protocol)s://%(domain)s:%(http_port)s:/grafana/customorgId=“1234”

Please suggest how can I achieve this scenario with Grafana.

Thanks in advance

Can you explain what you’re trying to achieve?

1 Like

Thank you for quick response, I am trying to display graphs only for the parameter I will be passing in query.
i.e as per my above example in where clause it would be


I’m also interested in this


I achieved this using templates and variables, see following if it might help you.

In Variables setting, create variable with name customorgid and select type of variable as constant from dropdown box.

Now you can pass this variable in your dashboard url as a parameter prefixed with “var-”.

And you can access this variable value in your graph panel query using $ symbol, something like this: orgId=$customorgid (this syntax might differ in type datasource or query language you choosing).

Give it a shot.

I wanted to inject this var-customorgid through reverse proxy. But looks like it’s not possible