# Creating Global Variable

**URL:** <https://community.grafana.com/t/creating-global-variable/16906>\
**Category:** Dashboards\
**Tags:** templating\
**Created:** [May 3, 2019, 3:17am UTC](https://community.grafana.com/t/creating-global-variable/16906 "2019-05-03T03:17:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jordanm](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@jordanm](https://community.grafana.com/u/jordanm)\
**Post date:** [May 3, 2019, 3:17am UTC](https://community.grafana.com/t/creating-global-variable/16906/1 "2019-05-03T03:17:19Z")

</div>

Is there any way to create a global variable which can be used by any dashboard. I have several dashboards where variables are repeated and it would be easier to create a single variable which can be used by any.

---

<div class="post-metadata">

**Author:** ![daniellee](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/daniellee/32/41_2.png) [@daniellee](https://community.grafana.com/u/daniellee)\
**Post date:** [May 3, 2019, 1:06pm UTC](https://community.grafana.com/t/creating-global-variable/16906/2 "2019-05-03T13:06:32Z")

</div>

No - no support for that yet. We did discuss implementing it for 6.0 but it got postponed until after the summer.

---

<div class="post-metadata">

**Author:** ![dijitali](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/dijitali/32/8148_2.png) [@dijitali](https://community.grafana.com/u/dijitali)\
**Post date:** [September 12, 2019, 9:20am UTC](https://community.grafana.com/t/creating-global-variable/16906/3 "2019-09-12T09:20:48Z")

</div>

FYI this looks like a similar issue to the one below from 2015 so might be worth following that for any updates:

> <https://github.com/grafana/grafana/issues/1959>

---

<div class="post-metadata">

**Author:** ![ajuanpi](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/ajuanpi/32/14838_2.png) [@ajuanpi](https://community.grafana.com/u/ajuanpi)\
**Post date:** [February 24, 2021, 2:48pm UTC](https://community.grafana.com/t/creating-global-variable/16906/4 "2021-02-24T14:48:46Z")

</div>

Hi, is there any update on this? that would be variables that can be shared across dashboards.

---

<div class="post-metadata">

**Author:** ![jollyekb](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@jollyekb](https://community.grafana.com/u/jollyekb)\
**Post date:** [August 31, 2021, 5:46am UTC](https://community.grafana.com/t/creating-global-variable/16906/5 "2021-08-31T05:46:15Z")

</div>

Hi, in 8 version, maybe?

---

<div class="post-metadata">

**Author:** ![maxxiger](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@maxxiger](https://community.grafana.com/u/maxxiger)\
**Post date:** [November 28, 2021, 4:14pm UTC](https://community.grafana.com/t/creating-global-variable/16906/6 "2021-11-28T16:14:08Z")

</div>

Hi, is there any update on this issue? I have the same problem: I am using ONE variable (costs per kwH in Euro) in 30 different dashboards. It is very inefficient to change that one variable in all dashboards, when my yearly energy consumption bill comes and there is a change in the kWh-price.

Anyone has news/updates? Thanks!

---

<div class="post-metadata">

**Author:** ![bobballantyne](https://avatars.discourse-cdn.com/v4/letter/b/eb9ed0/32.png) [@bobballantyne](https://community.grafana.com/u/bobballantyne)\
**Post date:** [December 9, 2021, 3:02am UTC](https://community.grafana.com/t/creating-global-variable/16906/7 "2021-12-09T03:02:43Z")

</div>

What about a global variable for root\_url (that is in grafana.ini) ?

This would make it much easier for me to create dashboards which refer to other dashboards in the same Grafana instance, as well as allowing me to setup my dev/staging branch instances to check content before it goes into our prod instance

---

<div class="post-metadata">

**Author:** ![supermathie](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/supermathie/32/22579_2.png) [@supermathie](https://community.grafana.com/u/supermathie)\
**Post date:** [April 14, 2022, 11:03pm UTC](https://community.grafana.com/t/creating-global-variable/16906/8 "2022-04-14T23:03:57Z")

</div>

We’re looking for the same. Right now we’re considering (ab)using a plugin that’s a custom data source, then populating a dashboard template variable from that data source and using it.

Feels janky though, we’d love for there to be a better way of doing it.

---

<div class="post-metadata">

**Author:** ![harisrozajac](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/harisrozajac/32/58999_2.png) [@harisrozajac](https://community.grafana.com/u/harisrozajac)\
**Post date:** [October 16, 2026, 8:35pm UTC](https://community.grafana.com/t/creating-global-variable/16906/9 "2026-10-16T20:35:20Z")

</div>

this is possible now [Define variables once, use them across dashboards | Grafana Labs](https://grafana.com/whats-new/2026-10-14-define-variables-once--use-them-across-dashboards/) 🙂
