Currently public dashboards do not support template variables. However, we are in discussion on providing that support, if feasible. Answer from lucychen1 on community.grafana.com
🌐
Grafana
community.grafana.com › dashboards
Why cannot I make a dashboard public? What are template variables? - Dashboards - Grafana Labs Community Forums
January 26, 2024 - What Grafana version and what operating system are you using? v10.2.3 MacOS Sonoma 14.2.1 What are you trying to achieve? Make a dashboard public. How are you trying to achieve it? What happened? A letter appeared saying the dashboard has template variables on it.
Discussions

Public Dashboards: fix for tamplate variables
But it would not break the dashboard and make it unusable. Maybe in the "public dashboard" share settings, to specify template variable values. No. Public dashboards did not work properly before ... area/dashboard/templatingarea/public-dashboardsteam/grafana-sharingtype/duplicatetype/feature-request More on github.com
🌐 github.com
11
August 31, 2023
Variables not working on public dashboards
I use grafana-server Version 10.4.0 and OS: Ubuntu 22.04.4 LTS. I have a public dashboard that I want to use variables functionality with it. I saw that currently Grafana does not support variables function in public dashboards, so I basically added data links (${__url}?var-location=${__va... More on community.grafana.com
🌐 community.grafana.com
4
0
October 7, 2024
Problem on creating Public Dashboard
I am trying to create a public dashboard in Grafana using a PostgreSQL data source with template variables. How are you trying to achieve it? I have designed a dashboard that uses PostgreSQL as the data source and includes template variables to make it dynamic. I want to make this dashboard public ... More on community.grafana.com
🌐 community.grafana.com
3
1
December 2, 2024
Bug: pubdash creation with template variables
After the modal redesign, we decided to let the users create a public dashboard despite the dashboard has template variables, just warning them. The reason is that maybe just one panel is using it ... More on github.com
🌐 github.com
0
March 8, 2023
🌐
Grafana
community.grafana.com › dashboards
Template variables on public dashboard - Dashboards - Grafana Labs Community Forums
January 28, 2026 - Hello Grafana’s community! I found myself sharing a public dashboard, after the setup I noticed that template variables are not supported. Why so? Is it a security concerned? I believe it would be a great feature being able to use those variables on public dashboards, same a the internal dashboards.
🌐
Reddit
reddit.com › r/grafana › public dashboards and variables
r/grafana on Reddit: Public dashboards and Variables
June 2, 2025 - r/grafana · • · 1y ago · IT-canuck · newbie-ish question.... I have a set of dashboards which rely heavily on variables to filter views, etc. I want to make these dashboards Public ("Share Externally") however template variables are not supported. Reworking my dashboards to remove the variables would take a while.
🌐
Grafana
grafana.com › docs › grafana › latest › visualizations › dashboards › variables
Variables | Grafana documentation
Choose a variable type based on how you want Grafana to get the value and how users interact with it. ... For the complete list of variable settings and type-specific steps, refer to Add variables. A template is any query that contains a variable.
🌐
OneUptime
oneuptime.com › home › blog › how to use grafana variables and templating for dynamic dashboards
How to Use Grafana Variables and Templating for Dynamic Dashboards
February 20, 2026 - Template variables transform Grafana dashboards from static views into interactive tools. Start with a namespace variable, chain service and pod variables for drill-down, and add an interval variable for flexible time windows.
🌐
GitHub
github.com › grafana › grafana › issues › 74151
Public Dashboards: fix for tamplate variables · Issue #74151 · grafana/grafana
August 31, 2023 - But it would not break the dashboard and make it unusable. Maybe in the "public dashboard" share settings, to specify template variable values. No. Public dashboards did not work properly before ... area/dashboard/templatingarea/public-dashboardsteam/grafana-sharingtype/duplicatetype/feature-request
Author: grafana
Find elsewhere
🌐
Grafana
community.grafana.com › dashboards
Variables not working on public dashboards - Dashboards - Grafana Labs Community Forums
October 7, 2024 - I saw that currently Grafana does not support variables function in public dashboards, so I basically added data links (${__url}?var-location=${__value.location}) to my panel view to make the location variable work.
🌐
Grafana
grafana.com › docs › grafana › latest › dashboards › variables › add-template-variables
Add variables | Grafana documentation
Navigate to the dashboard you want to update. Click Edit. Click the Add new element icon (blue plus sign) and select Variable.
🌐
OneUptime
oneuptime.com › home › blog › how to implement grafana dashboard templates
How to Implement Grafana Dashboard Templates
January 28, 2026 - Create base templates that specialized dashboards extend. flowchart TB subgraph Base B[base-service.jsonnet] end subgraph Specialized A[api-service.jsonnet] W[worker-service.jsonnet] D[database-service.jsonnet] end B --> A B --> W B --> D · // base-service.libsonnet local grafana = import 'grafonnet/grafana.libsonnet'; { // Base configuration baseConfig:: { datasource: 'Prometheus', refresh: '30s', timeFrom: 'now-6h', }, // Base variables baseVariables:: [ grafana.template.datasource( name='datasource', query='prometheus', current=$.baseConfig.datasource, ), grafana.template.new( name='enviro
🌐
GitHub
github.com › grafana › grafana › discussions › 49253
Public Dashboards in Grafana · grafana/grafana · Discussion #49253
Unfortunately the 2 dashboards I want to make publicly available are using templated variables 😆 I'll wait until this feature is completed then, thanks again for your help!
Author: grafana
🌐
OneUptime
oneuptime.com › home › blog › how to implement grafana dashboards with variables and templating
How to implement Grafana dashboards with variables and templating
February 9, 2026 - Grafana supports several variable types beyond query variables. Custom variables let you define a manual list of values: Name: environment Type: Custom Custom options: production,staging,development · Constant variables store values that don't change but can be referenced throughout the dashboard:
🌐
Grafana
community.grafana.com › dashboards
Problem on creating Public Dashboard - Dashboards - Grafana Labs Community Forums
December 2, 2024 - I am trying to create a public dashboard in Grafana using a PostgreSQL data source with template variables. How are you trying to achieve it? I have designed a dashboard that uses PostgreSQL as the data source and includes template variables to make it dynamic. I want to make this dashboard public ...
🌐
AWS
docs.aws.amazon.com › amazon managed grafana › user guide › use your grafana workspace › working in grafana version 8 › templates and variables
Templates and variables - Amazon Managed Grafana
When you change the value by using ... of the dashboard, your panel’s metric queries reflect the new value. These can be especially useful for administrators who want to allow viewers to adjust visualizations quickly but do not want to give them full editing permissions. Grafana viewers can use variables. By using variables and templates, you can ...
🌐
Grafana
grafana.com › docs › grafana › latest › datasources › prometheus › template-variables
Prometheus template variables | Grafana documentation
Grafana displays these variables as dropdown menus at the top of the dashboard, letting viewers change the displayed data without editing queries. For an introduction to templating and template variables, refer to Templating and Add and manage ...
🌐
GitHub
github.com › grafana › grafana › issues › 64437
Bug: pubdash creation with template variables · Issue #64437 · grafana/grafana
March 8, 2023 - After the modal redesign, we decided to let the users create a public dashboard despite the dashboard has template variables, just warning them. The reason is that maybe just one panel is using it and doesn't make sense to impair the who...
Author: grafana
🌐
OneUptime
oneuptime.com › home › blog › how to create grafana dashboard templates
How to Create Grafana Dashboard Templates
February 2, 2026 - Deploy dashboard templates as Kubernetes ConfigMaps for GitOps workflows: # dashboard-configmap.yaml # Contains the dashboard JSON as a ConfigMap for Kubernetes deployment apiVersion: v1 kind: ConfigMap metadata: name: grafana-dashboard-service-monitoring namespace: monitoring labels: grafana_dashboard: "1" data: service-monitoring.json: | { "title": "Service Monitoring", "uid": "service-monitoring", "templating": { "list": [ { "name": "namespace", "type": "query", "query": "label_values(kube_pod_info, namespace)" } ] }, "panels": [ { "title": "Request Rate", "type": "timeseries", "targets": [ { "expr": "sum(rate(http_requests_total{namespace=\"$namespace\"}[5m]))" } ] } ] }
🌐
OneUptime
oneuptime.com › home › blog › how to build grafana dashboard templates
How to Build Grafana Dashboard Templates
January 30, 2026 - Grafana provides several built-in format options for variable interpolation.
🌐
Huihoo
docs.huihoo.com › grafana › 2.6 › reference › templating › index.html
Templating - Grafana Documentation - Huihoo
They can all be used to create dynamic variables that you can use throughout the Dashboard, but they differ in how they get the data for their values. Note: The Query type is Data Source specific. Please consult the appropriate documentation for your particular Data Source. Query is the most common type of Template variable. Use the Query template type to generate a dynamic list of variables, simply by allowing Grafana to explore your Data Source metric namespace when the Dashboard loads.
🌐
Grafana
grafana.com › docs › grafana › latest › datasources › graphite › template-variables
Graphite template variables | Grafana documentation
... Instead of hard-coding details ... you can use variables. Grafana lists these variables in drop-down selection boxes at the top of the dashboard to help you change the data displayed in your dashboard....