# \#scripts

**URL:** https://community.grafana.com/tag/scripts/125.md

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

---

## [Clarification required: order of execution with k6-operator](https://community.grafana.com/t/clarification-required-order-of-execution-with-k6-operator/159498)

<div class="topic-metadata">

**Author:** [@subpardaemon](https://community.grafana.com/u/subpardaemon)\
**Replies:** 1\
**Last updated:** [February 28, 2026, 12:49pm UTC](https://community.grafana.com/t/clarification-required-order-of-execution-with-k6-operator/159498 "2026-02-28T12:49:25Z")

</div>

hi, i need a clarification regarding execution order: when the runner pod is created, does it first mount all the volumes described in TestRun.spec.runner.volumes? and only then starts looking for the script specified i…

---

## [How to send parallel grpc requests in k6?](https://community.grafana.com/t/how-to-send-parallel-grpc-requests-in-k6/152892)

<div class="topic-metadata">

**Author:** [@swagatikaswain5](https://community.grafana.com/u/swagatikaswain5)\
**Replies:** 1\
**Last updated:** [July 29, 2025, 11:38am UTC](https://community.grafana.com/t/how-to-send-parallel-grpc-requests-in-k6/152892 "2025-07-29T11:38:27Z")

</div>

I have a requirement where i need to send multiple grpc calls at same time. can be implemented for grpc in k6?

---

## [Migrating New Relic Alerts to Grafana Labs](https://community.grafana.com/t/migrating-new-relic-alerts-to-grafana-labs/151553)

<div class="topic-metadata">

**Author:** [@sagarthirumala](https://community.grafana.com/u/sagarthirumala)\
**Replies:** 0\
**Last updated:** [May 29, 2025, 9:28pm UTC](https://community.grafana.com/t/migrating-new-relic-alerts-to-grafana-labs/151553 "2025-05-29T21:28:57Z")

</div>

I have my alerts defined in New Relic. I can extract them using Terraform. How can i migrate them to Grafana using scripts?

---

## [Let Grafana Alloy agent run local Bash script and use the output](https://community.grafana.com/t/let-grafana-alloy-agent-run-local-bash-script-and-use-the-output/133828)

<div class="topic-metadata">

**Author:** [@pelleh](https://community.grafana.com/u/pelleh)\
**Replies:** 6\
**Last updated:** [December 9, 2024, 11:13pm UTC](https://community.grafana.com/t/let-grafana-alloy-agent-run-local-bash-script-and-use-the-output/133828 "2024-12-09T23:13:28Z")

</div>

Hi, I’m new to Alloy and I have a question. Is it possible to let Alloy run a Bash or Oython script and grab thoe output or even better exit code and send it to Mimir instead of letting another function (cron) run the s…

---

## [Dismiss browser alert window when script is running in headed mode](https://community.grafana.com/t/dismiss-browser-alert-window-when-script-is-running-in-headed-mode/122548)

<div class="topic-metadata">

**Author:** [@sonia2024](https://community.grafana.com/u/sonia2024)\
**Replies:** 1\
**Last updated:** [September 11, 2024, 11:24am UTC](https://community.grafana.com/t/dismiss-browser-alert-window-when-script-is-running-in-headed-mode/122548 "2024-09-11T11:24:30Z")

</div>

I have a script where opening URL redirects to login screen. However, before login screen, it displays blank page with alert window (like on screenshot). If I run script in headless mode “K6\_BROWSER\_HEADLESS=true” thi…

---

## [How K6 handles class objects created during runtime](https://community.grafana.com/t/how-k6-handles-class-objects-created-during-runtime/120444)

<div class="topic-metadata">

**Author:** [@nk555333](https://community.grafana.com/u/nk555333)\
**Replies:** 0\
**Last updated:** [April 28, 2024, 3:33am UTC](https://community.grafana.com/t/how-k6-handles-class-objects-created-during-runtime/120444 "2024-04-28T03:33:36Z")

</div>

Hi Community, I have designed my load test structure in the below mentioned format: A test file to make the flow of API calls A http helper file just to call k6/http methods and return the response Client files for e…

---

## [Unable to pass value into the body of post request](https://community.grafana.com/t/unable-to-pass-value-into-the-body-of-post-request/120211)

<div class="topic-metadata">

**Author:** [@sonia2024](https://community.grafana.com/u/sonia2024)\
**Replies:** 1\
**Last updated:** [April 24, 2024, 7:34pm UTC](https://community.grafana.com/t/unable-to-pass-value-into-the-body-of-post-request/120211 "2024-04-24T19:34:11Z")

</div>

I’m new to K6 and trying to create my first script. I’ve used K6 browser recorder and converted recoded HAR into script. In the script, inside “Group 1” I capture a string that I need to use in “Group 3” but all attemp…

---

## [Load Test options arent reflected in End of Test Summary report](https://community.grafana.com/t/load-test-options-arent-reflected-in-end-of-test-summary-report/118657)

<div class="topic-metadata">

**Author:** [@sattivasudevan](https://community.grafana.com/u/sattivasudevan)\
**Replies:** 2\
**Last updated:** [April 19, 2024, 1:50pm UTC](https://community.grafana.com/t/load-test-options-arent-reflected-in-end-of-test-summary-report/118657 "2024-04-19T13:50:46Z")

</div>

Noticed the load test options we defined wasn’t reflected in End of Test report. Are we missing something here Load Test Options: export const options = { scenarios: { Login: { executor: ‘per-vu-iterations’, vus: 3…

---

## [How to get unique values from csv using shared array](https://community.grafana.com/t/how-to-get-unique-values-from-csv-using-shared-array/118430)

<div class="topic-metadata">

**Author:** [@sattivasudevan](https://community.grafana.com/u/sattivasudevan)\
**Replies:** 2\
**Last updated:** [April 3, 2024, 3:34am UTC](https://community.grafana.com/t/how-to-get-unique-values-from-csv-using-shared-array/118430 "2024-04-03T03:34:37Z")

</div>

Facing issues like variable name not defined while calling the unique value from csv file as variable in Http request How variable been defined: const users = new SharedArray(“users”, function () { return papaparse.pa…

---

## [Is it possible to dynamically create entire Grafana dashboards with the use of a script?](https://community.grafana.com/t/is-it-possible-to-dynamically-create-entire-grafana-dashboards-with-the-use-of-a-script/110542)

<div class="topic-metadata">

**Author:** [@nourdeshnawy](https://community.grafana.com/u/nourdeshnawy)\
**Replies:** 2\
**Last updated:** [December 21, 2023, 2:56pm UTC](https://community.grafana.com/t/is-it-possible-to-dynamically-create-entire-grafana-dashboards-with-the-use-of-a-script/110542 "2023-12-21T14:56:15Z")

</div>

Does anyone know if it is possible to dynamically create entire Grafana dashboards with the use of a script?

---

## [Export panel as CSV/Excel](https://community.grafana.com/t/export-panel-as-csv-excel/101835)

<div class="topic-metadata">

**Author:** [@chembakayalabharath](https://community.grafana.com/u/chembakayalabharath)\
**Replies:** 1\
**Last updated:** [August 23, 2023, 7:16am UTC](https://community.grafana.com/t/export-panel-as-csv-excel/101835 "2023-08-23T07:16:45Z")

</div>

I have a table panel. The name/title of the table panel is $Venue\_$city where venue and city are multi-select filters. As I selected multiple venues and cities, the name of the panel header become bigger like the number …

---

## [\[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…

---

## [Removing meta data from grafana api response](https://community.grafana.com/t/removing-meta-data-from-grafana-api-response/69320)

<div class="topic-metadata">

**Author:** [@vadiksdba](https://community.grafana.com/u/vadiksdba)\
**Replies:** 19\
**Last updated:** [June 25, 2023, 4:09pm UTC](https://community.grafana.com/t/removing-meta-data-from-grafana-api-response/69320 "2023-06-25T16:09:13Z")

</div>

Hi Team, Is it possible to remove “meta” data from the api response. Please help me. "results": { "Inventory": { "refId": "Inventory", "meta": { "executedQueryString": "select .....", …

---

## [How can I use output of first rest API query an an input for second APi query](https://community.grafana.com/t/how-can-i-use-output-of-first-rest-api-query-an-an-input-for-second-api-query/83154)

<div class="topic-metadata">

**Author:** [@simonarbel](https://community.grafana.com/u/simonarbel)\
**Replies:** 0\
**Last updated:** [March 5, 2023, 3:44pm UTC](https://community.grafana.com/t/how-can-i-use-output-of-first-rest-api-query-an-an-input-for-second-api-query/83154 "2023-03-05T15:44:53Z")

</div>

Hi I’m using an API to get resources list from Azure (by JSON) and for each resource I need to get its costs using a different API which will produce a JSON output as well. How can put the resource name and its cost in…

---

## [How download json of grafana multiple dashboard by code?](https://community.grafana.com/t/how-download-json-of-grafana-multiple-dashboard-by-code/78079)

<div class="topic-metadata">

**Author:** [@sagarsorout](https://community.grafana.com/u/sagarsorout)\
**Replies:** 2\
**Last updated:** [December 15, 2022, 12:54pm UTC](https://community.grafana.com/t/how-download-json-of-grafana-multiple-dashboard-by-code/78079 "2022-12-15T12:54:21Z")

</div>

Manually we could download json. But multiple dashbaord json how could download by scipt or api THANK YOU!! ~ the grafana team

---

## [Powershell Script for windows grafana agent on custom directory](https://community.grafana.com/t/powershell-script-for-windows-grafana-agent-on-custom-directory/77841)

<div class="topic-metadata">

**Author:** [@kunalkhandagale1](https://community.grafana.com/u/kunalkhandagale1)\
**Replies:** 2\
**Last updated:** [December 15, 2022, 6:36am UTC](https://community.grafana.com/t/powershell-script-for-windows-grafana-agent-on-custom-directory/77841 "2022-12-15T06:36:36Z")

</div>

I am trying to build a PowerShell script to install the Grafana agent on windows in a custom path and not in C drive. However I am not able to change the installation path since I do not which parameter do I need to pass…

---

## [Scripted Dashboard Access / permissions](https://community.grafana.com/t/scripted-dashboard-access-permissions/77967)

<div class="topic-metadata">

**Author:** [@bmdeshmukh18](https://community.grafana.com/u/bmdeshmukh18)\
**Replies:** 1\
**Last updated:** [December 13, 2022, 5:23pm UTC](https://community.grafana.com/t/scripted-dashboard-access-permissions/77967 "2022-12-13T17:23:25Z")

</div>

Hello, I have a few scripted dashboards for a few set of users. All these users are given as Viewer Roles and when they access the configured dashboards, they get below options when panel title is clicked. However, …

---

## [Automation of publishing real time data to public](https://community.grafana.com/t/automation-of-publishing-real-time-data-to-public/72880)

<div class="topic-metadata">

**Author:** [@anon22310119](https://community.grafana.com/u/anon22310119)\
**Replies:** 1\
**Last updated:** [September 27, 2022, 8:27pm UTC](https://community.grafana.com/t/automation-of-publishing-real-time-data-to-public/72880 "2022-09-27T20:27:07Z")

</div>

Is there a process or method to automate publishing to non-Grafana users (e.g., the share to raintank.io)? Is there a process to update the data set? I can update my data set if I go to my designer and re-select th…

---

## [Grafonnet-lib compatibility with Grafana 9.x and unified alerting](https://community.grafana.com/t/grafonnet-lib-compatibility-with-grafana-9-x-and-unified-alerting/68160)

<div class="topic-metadata">

**Author:** [@moyamos](https://community.grafana.com/u/moyamos)\
**Replies:** 4\
**Last updated:** [July 20, 2022, 8:01am UTC](https://community.grafana.com/t/grafonnet-lib-compatibility-with-grafana-9-x-and-unified-alerting/68160 "2022-07-20T08:01:43Z")

</div>

Hi All, I was using grafonnet-lib for generating dashboards and it was working fine with Grafana 8.4.1 in the legacy alerting engine. After upgrading to 9.0.2 generated JSON does not create an alert! I wonder whether t…

---

## [Column data is rounding to K in Scripted Table data](https://community.grafana.com/t/column-data-is-rounding-to-k-in-scripted-table-data/68998)

<div class="topic-metadata">

**Author:** [@bmdeshmukh18](https://community.grafana.com/u/bmdeshmukh18)\
**Replies:** 0\
**Last updated:** [July 19, 2022, 11:51am UTC](https://community.grafana.com/t/column-data-is-rounding-to-k-in-scripted-table-data/68998 "2022-07-19T11:51:14Z")

</div>

Hi, I am using Grafana 6.5.2 version and Linux operating system. I am trying to show data using a script file on the dashboard, either in a graph or table format. For both of them the big number values were rounding o…

---

## [Archiving old data in new table scheduled task](https://community.grafana.com/t/archiving-old-data-in-new-table-scheduled-task/65989)

<div class="topic-metadata">

**Author:** [@mmilone83](https://community.grafana.com/u/mmilone83)\
**Replies:** 1\
**Last updated:** [May 20, 2022, 2:37pm UTC](https://community.grafana.com/t/archiving-old-data-in-new-table-scheduled-task/65989 "2022-05-20T14:37:21Z")

</div>

Hello everyone! I have an installation of influxdb and grafana on a hassio server (home assistant). Through queries, I create histograms of energy consumption with the data of the whole day. The query is very heavy. I wo…

---

## [How to configure public access to Grafana to Scripted dashboards](https://community.grafana.com/t/how-to-configure-public-access-to-grafana-to-scripted-dashboards/61987)

<div class="topic-metadata">

**Author:** [@iam33](https://community.grafana.com/u/iam33)\
**Replies:** 0\
**Last updated:** [March 8, 2022, 10:48am UTC](https://community.grafana.com/t/how-to-configure-public-access-to-grafana-to-scripted-dashboards/61987 "2022-03-08T10:48:35Z")

</div>

Thanks in advance! I have a problem when integrating Grafana with Nagios: I have Nagios configured against an influxbd database, and Grafana with a datasource against it. I use the Histou tool(Scripted dashboards) for …

---

## [How to Combine Template Variables with a user's Role?](https://community.grafana.com/t/how-to-combine-template-variables-with-a-users-role/58389)

<div class="topic-metadata">

**Author:** [@allomorphy](https://community.grafana.com/u/allomorphy)\
**Replies:** 7\
**Last updated:** [February 13, 2022, 12:25pm UTC](https://community.grafana.com/t/how-to-combine-template-variables-with-a-users-role/58389 "2022-02-13T12:25:56Z")

</div>

Hi there, Is there a useful place of community contributed resources? I was thinking to place the following script where it might be of use to others. https://github.com/DIFFERENCECODE/grafana-provision-user The script…

---

## [How to specify Organisation when pausing all alerts](https://community.grafana.com/t/how-to-specify-organisation-when-pausing-all-alerts/762)

<div class="topic-metadata">

**Author:** [@eridur142](https://community.grafana.com/u/eridur142)\
**Replies:** 4\
**Last updated:** [May 4, 2017, 7:11am UTC](https://community.grafana.com/t/how-to-specify-organisation-when-pausing-all-alerts/762 "2017-05-04T07:11:45Z")

</div>

Hi guys Grafana is structured into organisation and I have use that to make one for our azuredev teams at job Those azure VM shutdown a 17h so i wanted to pause only azuredev oraganisation but not the others that target…
