<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.foji.io/index.php?action=history&amp;feed=atom&amp;title=Dashboard_URL_Variables</id>
	<title>Dashboard URL Variables - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.foji.io/index.php?action=history&amp;feed=atom&amp;title=Dashboard_URL_Variables"/>
	<link rel="alternate" type="text/html" href="https://docs.foji.io/index.php?title=Dashboard_URL_Variables&amp;action=history"/>
	<updated>2026-06-22T03:28:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://docs.foji.io/index.php?title=Dashboard_URL_Variables&amp;diff=328&amp;oldid=prev</id>
		<title>Chris.Hansen: Created page with &quot;FojiSoft can apply variable values passed as query parameters in dashboard URLs.  == Passing variables as query parameters == FojiSoft interprets query string parameters prefixed with var- as variables in the given dashboard.  For example, in this URL:  &lt;nowiki&gt;https://${your-domain}/path/to/your/dashboard?var-example=value&lt;/nowiki&gt;  The query parameter var-example=value represents the dashboard variable example with a value of value.  == Passing multiple values for a va...&quot;</title>
		<link rel="alternate" type="text/html" href="https://docs.foji.io/index.php?title=Dashboard_URL_Variables&amp;diff=328&amp;oldid=prev"/>
		<updated>2024-01-02T18:58:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;FojiSoft can apply variable values passed as query parameters in dashboard URLs.  == Passing variables as query parameters == FojiSoft interprets query string parameters prefixed with var- as variables in the given dashboard.  For example, in this URL:  &amp;lt;nowiki&amp;gt;https://${your-domain}/path/to/your/dashboard?var-example=value&amp;lt;/nowiki&amp;gt;  The query parameter var-example=value represents the dashboard variable example with a value of value.  == Passing multiple values for a va...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;FojiSoft can apply variable values passed as query parameters in dashboard URLs.&lt;br /&gt;
&lt;br /&gt;
== Passing variables as query parameters ==&lt;br /&gt;
FojiSoft interprets query string parameters prefixed with var- as variables in the given dashboard.&lt;br /&gt;
&lt;br /&gt;
For example, in this URL:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;https://${your-domain}/path/to/your/dashboard?var-example=value&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The query parameter var-example=value represents the dashboard variable example with a value of value.&lt;br /&gt;
&lt;br /&gt;
== Passing multiple values for a variable ==&lt;br /&gt;
To pass multiple values, repeat the variable parameter once for each value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;https://${your-domain}/path/to/your/dashboard?var-example=value1&amp;amp;var-example=value2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
FojiSoft interprets var-example=value1&amp;amp;var-example=value2 as the dashboard variable example with two values: value1 and value2.&lt;br /&gt;
&lt;br /&gt;
== Adding variables to dashboard links ==&lt;br /&gt;
FojiSoft can add variables to dashboard links when you generate them from a dashboard’s settings.&lt;br /&gt;
&lt;br /&gt;
== Passing ad hoc filters ==&lt;br /&gt;
Ad hoc filters apply key/value filters to all metric queries that use a specified data source.&lt;br /&gt;
&lt;br /&gt;
To pass an adhoc filter as a query parameter, use the variable syntax to pass the ad hocfilter variable, and also provide the key, the operator as the value, and thevalue as a pipe-separated list.&lt;br /&gt;
&lt;br /&gt;
For example, inthis URL:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;https://${your-domain}/path/to/your/dashboard?var-adhoc=example_key|=|example_value&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The query parameter var-adhoc=key|=|value applies the ad hoc filter configured as the ad hoc dashboard variable using the example_key key, the = operator, and the example_value value.&lt;br /&gt;
&lt;br /&gt;
Note: When sharing URLs with ad hoc filters, remember to encode the URL. In the above example, replace the pipes (|) with %7C and the equality operator (=) with %3D.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;https://example.host.local/d/000000002/influxdb-templated?orgId=1&amp;amp;var-datacenter=America&amp;amp;var-host=All&amp;amp;var-summarize=1m&amp;amp;var-adhoc=datacenter%7C%3D%7CAmerica&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This passes the ad hoc filter variable ad hoc with the filter value datacenter = America.&lt;br /&gt;
&lt;br /&gt;
== Controlling time range using the URL ==&lt;br /&gt;
To set a dashboard’s time range, use the from, to, time, and time.window query parameters.Because these are not variables, they do not require the var- prefix&lt;br /&gt;
[[Category:Visualize]]&lt;/div&gt;</summary>
		<author><name>Chris.Hansen</name></author>
	</entry>
</feed>