# \#dashboards-as-code

**URL:** https://community.grafana.com/tag/dashboards-as-code/122.md

[Latest](https://community.grafana.com/latest.md) · [Categories](https://community.grafana.com/categories.md) · [Tags](https://community.grafana.com/tags.md)

---

## [Grafana Campfire 🔥 - What’s New in Grafana Git Sync - (Grafana Community Call - Sept 2026)](https://community.grafana.com/t/grafana-campfire-what-s-new-in-grafana-git-sync-grafana-community-call-sept-2026/164465)

<div class="topic-metadata">

**Author:** [@usman.ahmad](https://community.grafana.com/u/usman.ahmad)\
**Replies:** 2\
**Last updated:** [October 17, 2026, 5:32pm UTC](https://community.grafana.com/t/grafana-campfire-what-s-new-in-grafana-git-sync-grafana-community-call-sept-2026/164465 "2026-10-17T17:32:30Z")

</div>

Topic: What’s New in Grafana Git Sync :grafana: Date and Time: 2026-09-25T13:00:00Z (UTC) CEST (1:00 PM UTC) Dear Community Members :waving\_hand:, Join us for a follow-up Grafana Campfire to explore what we’ve built in G…

---

## [Dashboard exportation workflow broken](https://community.grafana.com/t/dashboard-exportation-workflow-broken/163532)

<div class="topic-metadata">

**Author:** [@ccareau](https://community.grafana.com/u/ccareau)\
**Replies:** 5\
**Last updated:** [August 19, 2026, 1:11pm UTC](https://community.grafana.com/t/dashboard-exportation-workflow-broken/163532 "2026-08-19T13:11:23Z")

</div>

Hi all, We’re running into an issue with the dashboard export workflow in Grafana (v13.0.2). Our setup: We manage dashboards as code via a Git repository. Our Grafana instance does not allow developers to save dashboa…

---

## [Can't "Upload JSON file" work - in new version, 8.5.2 (04/may)k](https://community.grafana.com/t/cant-upload-json-file-work-in-new-version-8-5-2-04-may-k/65270)

<div class="topic-metadata">

**Author:** [@luchinagabriel](https://community.grafana.com/u/luchinagabriel)\
**Replies:** 7\
**Last updated:** [February 16, 2026, 3:52am UTC](https://community.grafana.com/t/cant-upload-json-file-work-in-new-version-8-5-2-04-may-k/65270 "2026-02-16T03:52:21Z")

</div>

Hi, In this new version of Grafana (8.5.2), import function of Dashboards in ‘Upload JSON file’, don’t work, don’t open a window for select a file. In older versions (eg, 8.5.1), this feature work normally. Regards, …

---

## [Hide row or panel if there is no data](https://community.grafana.com/t/hide-row-or-panel-if-there-is-no-data/60395)

<div class="topic-metadata">

**Author:** [@alencappelletti](https://community.grafana.com/u/alencappelletti)\
**Replies:** 6\
**Last updated:** [January 7, 2026, 3:06pm UTC](https://community.grafana.com/t/hide-row-or-panel-if-there-is-no-data/60395 "2026-01-07T15:06:53Z")

</div>

Hi I would like to know if it’s possible hide a row (where inside there are some panels) or if there is no data on a query or variable value. Anyway it’s important for me that “some elements” disappear.

---

## [Does the Grafana Foundation SDK get much use?](https://community.grafana.com/t/does-the-grafana-foundation-sdk-get-much-use/160491)

<div class="topic-metadata">

**Author:** [@garethsrt](https://community.grafana.com/u/garethsrt)\
**Replies:** 0\
**Last updated:** [December 23, 2025, 1:03pm UTC](https://community.grafana.com/t/does-the-grafana-foundation-sdk-get-much-use/160491 "2025-12-23T13:03:15Z")

</div>

Hi all, I really want to define dashboards in code (instead of via the UI) and I thought the Foundation SDK would be the answer and quick & easy to pick up (e.g. like Terraform or similar), but it does seem to take a bi…

---

## [Grafana Campfire 🔥- Using Git Sync (Grafana Community Call - Nov 2025)](https://community.grafana.com/t/grafana-campfire-using-git-sync-grafana-community-call-nov-2025/159463)

<div class="topic-metadata">

**Author:** [@usman.ahmad](https://community.grafana.com/u/usman.ahmad)\
**Replies:** 0\
**Last updated:** [November 17, 2025, 6:12pm UTC](https://community.grafana.com/t/grafana-campfire-using-git-sync-grafana-community-call-nov-2025/159463 "2025-11-17T18:12:23Z")

</div>

Topic: Using Git Sync Date: Friday 28th November Time: 1:00 PM UTC (3:00 PM CEST) Dear Community Members :wave: For our upcoming Grafana Campfire :fire: Community Call, we’ll explore Grafana Git Sync, a powerful new …

---

## [Grafana helm chart fails to provision dashboards](https://community.grafana.com/t/grafana-helm-chart-fails-to-provision-dashboards/148735)

<div class="topic-metadata">

**Author:** [@jski185](https://community.grafana.com/u/jski185)\
**Replies:** 3\
**Last updated:** [November 14, 2025, 3:16am UTC](https://community.grafana.com/t/grafana-helm-chart-fails-to-provision-dashboards/148735 "2025-11-14T03:16:37Z")

</div>

What Grafana version and what operating system are you using? Kubernetes (via k3s) version v1.31.6+k3s1 Grafana helm chart version 8.12.1 (which deploys appver 11.6.0) What are you trying to achieve? I am trying …

---

## [Lost all of the dashboard after turn on/off Git Sync](https://community.grafana.com/t/lost-all-of-the-dashboard-after-turn-on-off-git-sync/157084)

<div class="topic-metadata">

**Author:** [@pepodev](https://community.grafana.com/u/pepodev)\
**Replies:** 1\
**Last updated:** [September 8, 2025, 7:22am UTC](https://community.grafana.com/t/lost-all-of-the-dashboard-after-turn-on-off-git-sync/157084 "2025-09-08T07:22:21Z")

</div>

I have turned on the Grafana Git Sync and found that it has removed all empty folders, so all of the alerts are missing cause it can’t find the reference folder After this, I decided to remove the Git Sync and restart t…

---

## [Grafana cloud folder permissions](https://community.grafana.com/t/grafana-cloud-folder-permissions/152436)

<div class="topic-metadata">

**Author:** [@joesenior07](https://community.grafana.com/u/joesenior07)\
**Replies:** 1\
**Last updated:** [June 11, 2025, 11:31pm UTC](https://community.grafana.com/t/grafana-cloud-folder-permissions/152436 "2025-06-11T23:31:53Z")

</div>

Hi, A user deleted the a dashboard folder, I would like only admins to be able to do this but the other roles should be able to create and edit dashboards what should I do also the roles are managed in Okta, apart from …

---

## [Aggregate every minute data to daily(summed) data](https://community.grafana.com/t/aggregate-every-minute-data-to-daily-summed-data/148187)

<div class="topic-metadata">

**Author:** [@snowpg](https://community.grafana.com/u/snowpg)\
**Replies:** 3\
**Last updated:** [April 21, 2025, 3:10pm UTC](https://community.grafana.com/t/aggregate-every-minute-data-to-daily-summed-data/148187 "2025-04-21T15:10:05Z")

</div>

What Grafana version and what operating system are you using? Grafana v10.3.1 (00a22ff8b2) - Windows 11 What are you trying to achieve? I have a database (In MySQL) having data like this: \*|Name | TS | Value| |— | …

---

## [Dashboard JSON: How to declare a global \`"datasource"\`](https://community.grafana.com/t/dashboard-json-how-to-declare-a-global-datasource/145830)

<div class="topic-metadata">

**Author:** [@ChristianTacke](https://community.grafana.com/u/ChristianTacke)\
**Replies:** 3\
**Last updated:** [March 8, 2025, 12:34am UTC](https://community.grafana.com/t/dashboard-json-how-to-declare-a-global-datasource/145830 "2025-03-08T00:34:49Z")

</div>

What Grafana version and what operating system are you using? Latest as of posting What are you trying to achieve? I am writing the json model for my dashboard mostly manually (for importing / provisioning). This …

---

## [GCE Compute Engine Monitoring Plugin | Deprecate MQL from Google](https://community.grafana.com/t/gce-compute-engine-monitoring-plugin-deprecate-mql-from-google/144733)

<div class="topic-metadata">

**Author:** [@msreekanth02](https://community.grafana.com/u/msreekanth02)\
**Replies:** 0\
**Last updated:** [February 22, 2025, 5:45pm UTC](https://community.grafana.com/t/gce-compute-engine-monitoring-plugin-deprecate-mql-from-google/144733 "2025-02-22T17:45:31Z")

</div>

I need suggestions/advises how to go further on this? What Grafana version and what operating system are you using? Latest Version 9.x and RHEL9.x What are you trying to achieve? To create a dashboard by using av…

---

## [How to upload dashboards as .json files to kubernetes via helm](https://community.grafana.com/t/how-to-upload-dashboards-as-json-files-to-kubernetes-via-helm/59731)

<div class="topic-metadata">

**Author:** [@swaps1](https://community.grafana.com/u/swaps1)\
**Replies:** 31\
**Last updated:** [October 18, 2024, 1:26pm UTC](https://community.grafana.com/t/how-to-upload-dashboards-as-json-files-to-kubernetes-via-helm/59731 "2024-10-18T13:26:57Z")

</div>

Hi all, I have installed grafana helm chart, and want to pass values to it from a parent chart - i am using prometheus in this way so assume it will also be possible. My directory structure is; /grafana /charts/gra…

---

## [How to share a dasboard that uses the Canvas panel](https://community.grafana.com/t/how-to-share-a-dasboard-that-uses-the-canvas-panel/133344)

<div class="topic-metadata">

**Author:** [@jnunez2](https://community.grafana.com/u/jnunez2)\
**Replies:** 0\
**Last updated:** [October 1, 2024, 6:48pm UTC](https://community.grafana.com/t/how-to-share-a-dasboard-that-uses-the-canvas-panel/133344 "2024-10-01T18:48:08Z")

</div>

Hello all, I managed to create a network diagram using the Canvas panel. I’m having issues sharing the Grafana dashboard on a new instance: The panel has a custom SVG, which I copied to grafana/public/img/icons/marke…

---

## [How to "reload datasource" without restarting server](https://community.grafana.com/t/how-to-reload-datasource-without-restarting-server/125271)

<div class="topic-metadata">

**Author:** [@rob.loh](https://community.grafana.com/u/rob.loh)\
**Replies:** 1\
**Last updated:** [July 2, 2024, 9:27am UTC](https://community.grafana.com/t/how-to-reload-datasource-without-restarting-server/125271 "2024-07-02T09:27:06Z")

</div>

Hi all, I’m trying to update datasources through the HTTP API. My request uses modified JSON from the HTTP GET for the datasource (with the modifications I want to make). I always get the following response: HTTP/1.1 …

---

## [Import dashboard from file via API](https://community.grafana.com/t/import-dashboard-from-file-via-api/22266)

<div class="topic-metadata">

**Author:** [@dhyatas](https://community.grafana.com/u/dhyatas)\
**Replies:** 9\
**Last updated:** [June 26, 2024, 9:19am UTC](https://community.grafana.com/t/import-dashboard-from-file-via-api/22266 "2024-06-26T09:19:45Z")

</div>

Good Day I am trying to import a dashboard exported from the Grafana GUI via a Curl. The command I am using for import is: curl -X POST --insecure -H "Authorization: Bearer $apikey" -H "Content-Type: application/json"…

---

## [Dashboard API - Unauthorized](https://community.grafana.com/t/dashboard-api-unauthorized/124674)

<div class="topic-metadata">

**Author:** [@rob.loh](https://community.grafana.com/u/rob.loh)\
**Replies:** 2\
**Last updated:** [June 24, 2024, 12:41pm UTC](https://community.grafana.com/t/dashboard-api-unauthorized/124674 "2024-06-24T12:41:04Z")

</div>

Hi, I’m getting started with the Dashboard API, but cannot seem to get a simple GET to work. I’m following the example here. Here is my request with my values replaced by placeholders: GET http://localhost:3000/api/d…

---

## [Pq: syntax error with postgres - how to see the query?](https://community.grafana.com/t/pq-syntax-error-with-postgres-how-to-see-the-query/60734)

<div class="topic-metadata">

**Author:** [@danielt290947](https://community.grafana.com/u/danielt290947)\
**Replies:** 2\
**Last updated:** [January 23, 2024, 6:27pm UTC](https://community.grafana.com/t/pq-syntax-error-with-postgres-how-to-see-the-query/60734 "2024-01-23T18:27:44Z")

</div>

Inspect-query does not show query when causing syntax error, neither log level debug Using Grafana 7.3.1 with Postgresql. I really love the inspect - query function because I can right away post it in pgadmin. However t…

---

## [Provisioning alerts and dashboards (and alerts) without using a sidecar containers (grafana-sc-dashboard)](https://community.grafana.com/t/provisioning-alerts-and-dashboards-and-alerts-without-using-a-sidecar-containers-grafana-sc-dashboard/105368)

<div class="topic-metadata">

**Author:** [@ilyasudi](https://community.grafana.com/u/ilyasudi)\
**Replies:** 0\
**Last updated:** [October 11, 2023, 1:23pm UTC](https://community.grafana.com/t/provisioning-alerts-and-dashboards-and-alerts-without-using-a-sidecar-containers-grafana-sc-dashboard/105368 "2023-10-11T13:23:35Z")

</div>

Grafana v10.1.1 (0cfa76b22d) I am trying to provision alerts and dashboards from helmchart/gitLab to Kubernetes cluster. I can NOT use k8s-sidecar container right now at my production environment, do not ask why. I wa…

---

## [How to import/export dashboards from a enviroment to another](https://community.grafana.com/t/how-to-import-export-dashboards-from-a-enviroment-to-another/60600)

<div class="topic-metadata">

**Author:** [@jgarciadelanoceda](https://community.grafana.com/u/jgarciadelanoceda)\
**Replies:** 29\
**Last updated:** [September 8, 2023, 2:28pm UTC](https://community.grafana.com/t/how-to-import-export-dashboards-from-a-enviroment-to-another/60600 "2023-09-08T14:28:33Z")

</div>

Hello, I ask how you can import in a programmatic way dashboards to another environment. Is related to this issue in Github \[Grafana\] 8.3.X Copy a Dashboard to another environment by copying it from Json Model · Issue …

---

## [Open grafana dashboard with default variables selected](https://community.grafana.com/t/open-grafana-dashboard-with-default-variables-selected/58976)

<div class="topic-metadata">

**Author:** [@chembakayalabharath](https://community.grafana.com/u/chembakayalabharath)\
**Replies:** 4\
**Last updated:** [August 11, 2023, 6:04pm UTC](https://community.grafana.com/t/open-grafana-dashboard-with-default-variables-selected/58976 "2023-08-11T18:04:40Z")

</div>

when we open dashboard it is not selecting any one of the variables automatically? what to do if we want that… if we open any dashboard it should open with any one of the existing variables selected by default? could y…

---

## [\[OSS tool\] Write Grafana pre-build dashboards in Python](https://community.grafana.com/t/oss-tool-write-grafana-pre-build-dashboards-in-python/91342)

<div class="topic-metadata">

**Author:** [@fzyzcjy](https://community.grafana.com/u/fzyzcjy)\
**Replies:** 3\
**Last updated:** [July 13, 2023, 12:20pm UTC](https://community.grafana.com/t/oss-tool-write-grafana-pre-build-dashboards-in-python/91342 "2023-07-13T12:20:24Z")

</div>

GitHub: GitHub - fzyzcjy/grafana\_dashboard\_python: Write Grafana dashboards in Python, without losing thousands of dashboards in the zoo Shortly speaking, in addition to the traditional “generate Grafana dashboards from…

---

## [How can I automate the deployment of the updated version of my dashboard?](https://community.grafana.com/t/how-can-i-automate-the-deployment-of-the-updated-version-of-my-dashboard/87443)

<div class="topic-metadata">

**Author:** [@asuwini](https://community.grafana.com/u/asuwini)\
**Replies:** 5\
**Last updated:** [May 11, 2023, 10:29am UTC](https://community.grafana.com/t/how-can-i-automate-the-deployment-of-the-updated-version-of-my-dashboard/87443 "2023-05-11T10:29:56Z")

</div>

Hi all, Given that I have a set of dashboard JSON files stored in GitHub and I update them weekly, what is the best way to automate the process of upgrading the dashboard on 5 different servers? Currently, I perform thi…

---

## [Getting the getLocale() value into payload](https://community.grafana.com/t/getting-the-getlocale-value-into-payload/81209)

<div class="topic-metadata">

**Author:** [@mateorid](https://community.grafana.com/u/mateorid)\
**Replies:** 5\
**Last updated:** [April 5, 2023, 2:04pm UTC](https://community.grafana.com/t/getting-the-getlocale-value-into-payload/81209 "2023-04-05T14:04:10Z")

</div>

Hi I’m trying to internationalize my panels information. For that, I need to get the language code to the payload that is sent in queries to my backend. I’ve been using variables to set the language so far, but I wan…

---

## [Grafana as code provisioned dashboard do not recognize datasource](https://community.grafana.com/t/grafana-as-code-provisioned-dashboard-do-not-recognize-datasource/83694)

<div class="topic-metadata">

**Author:** [@jnunez2](https://community.grafana.com/u/jnunez2)\
**Replies:** 3\
**Last updated:** [March 21, 2023, 2:28pm UTC](https://community.grafana.com/t/grafana-as-code-provisioned-dashboard-do-not-recognize-datasource/83694 "2023-03-21T14:28:24Z")

</div>

Hello, I’m using Grafana OSS 9.2.4 with the Prometheus plugin 5.0.0 that ships with Grafana, on Linux. I’m trying to provision my data sources and dashboards as code and I did the following: From a working instance, …

---

## [Grafana Dashboard getting deleted from Grafana and recreating infinitely with message version updated](https://community.grafana.com/t/grafana-dashboard-getting-deleted-from-grafana-and-recreating-infinitely-with-message-version-updated/82718)

<div class="topic-metadata">

**Author:** [@anopru](https://community.grafana.com/u/anopru)\
**Replies:** 0\
**Last updated:** [February 28, 2023, 5:23am UTC](https://community.grafana.com/t/grafana-dashboard-getting-deleted-from-grafana-and-recreating-infinitely-with-message-version-updated/82718 "2023-02-28T05:23:49Z")

</div>

What Grafana version and what operating system are you using? Grafana v9.1.4 via Grafana Operator, linux What are you trying to achieve?(bug) One specific dashboard “nodexporter” is getting deleted and recreated d…

---

## [Update all Dashboard](https://community.grafana.com/t/update-all-dashboard/73583)

<div class="topic-metadata">

**Author:** [@sluchini](https://community.grafana.com/u/sluchini)\
**Replies:** 1\
**Last updated:** [October 21, 2022, 5:40pm UTC](https://community.grafana.com/t/update-all-dashboard/73583 "2022-10-21T17:40:24Z")

</div>

Hello, I want to use Grafana to display stats from our management software. Each customer will have a user account and each will have their dashboard which will be the same for all (when creating the user account, an im…

---

## [Datasource provisioning error. Only one datasource per organization can be marked as default](https://community.grafana.com/t/datasource-provisioning-error-only-one-datasource-per-organization-can-be-marked-as-default/80644)

<div class="topic-metadata">

**Author:** [@faizurcloudacc](https://community.grafana.com/u/faizurcloudacc)\
**Replies:** 2\
**Last updated:** [January 30, 2023, 3:55pm UTC](https://community.grafana.com/t/datasource-provisioning-error-only-one-datasource-per-organization-can-be-marked-as-default/80644 "2023-01-30T15:55:13Z")

</div>

What Grafana version and what operating system are you using? grafana:8.2.5 , inside docker container ubuntu 5.15.0 What are you trying to achieve? grafana is running on docker container, so my datasource configur…

---

## [Can not send my dashboard to Grafana via API](https://community.grafana.com/t/can-not-send-my-dashboard-to-grafana-via-api/78975)

<div class="topic-metadata">

**Author:** [@mahiyouu](https://community.grafana.com/u/mahiyouu)\
**Replies:** 17\
**Last updated:** [January 5, 2023, 11:45am UTC](https://community.grafana.com/t/can-not-send-my-dashboard-to-grafana-via-api/78975 "2023-01-05T11:45:54Z")

</div>

Hi guys, I am trying to uload the following to my Grafana localhost: { “annotations”: { “list”: \[ { “builtIn”: 1, “datasource”: { “type”: “grafana”, “uid”: “-- Grafana --” }, “enable”: true, “hide”: true, “i…

---

## [Use the ID of adashboard to update a dashboard](https://community.grafana.com/t/use-the-id-of-adashboard-to-update-a-dashboard/79104)

<div class="topic-metadata">

**Author:** [@mahiyouu](https://community.grafana.com/u/mahiyouu)\
**Replies:** 1\
**Last updated:** [January 5, 2023, 12:03am UTC](https://community.grafana.com/t/use-the-id-of-adashboard-to-update-a-dashboard/79104 "2023-01-05T00:03:43Z")

</div>

Hi everyone, I have written a Python code to update my dashboards programatically. My small problem is though that I cannot find out the ID of a dashboard in Grafana to use it for update. Where can I find the ID of a da…

[Next page](https://community.grafana.com/tag/dashboards-as-code/122.md?match_all_tags=true&page=1&tags%5B%5D=dashboards-as-code)
