# Execute Python script From Grafana Dashboard

**URL:** <https://community.grafana.com/t/execute-python-script-from-grafana-dashboard/45479>\
**Category:** Grafana\
**Created:** [April 1, 2021, 11:07am UTC](https://community.grafana.com/t/execute-python-script-from-grafana-dashboard/45479 "2021-04-01T11:07:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nirajkumarpandey](https://avatars.discourse-cdn.com/v4/letter/n/3ab097/32.png) [@nirajkumarpandey](https://community.grafana.com/u/nirajkumarpandey)\
**Post date:** [April 1, 2021, 11:07am UTC](https://community.grafana.com/t/execute-python-script-from-grafana-dashboard/45479/1 "2021-04-01T11:07:43Z")

</div>

Hi ,

Is there any way to execute python script while clicking on Grafana dashboard and display the script o/p over the web.

 ![image](https://us1.discourse-cdn.com/grafana/original/2X/3/3ea543ab3e77c3db6857861f72977a5465e6ce8c.png)

Like in above snippet I want when I click on the Number under “Total\_Jobs\_Under\_Consumed” column , It execute a python script and get the data on a new tab. We need to pass the Queue/User and time range as well to the script.

Ie: when I click on number 1085 , It should invoke a script let’s say a.py and pass the following argument to the script as well.

ie:  
a.py --user chunmei --queue q16x128 --from x --to y (x,y are start and end date are time range

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [April 1, 2022, 11:07am UTC](https://community.grafana.com/t/execute-python-script-from-grafana-dashboard/45479/2 "2022-04-01T11:07:57Z")

</div>

Closed on April 1, 2022, 11:07am UTC

This topic was automatically closed after 365 days. New replies are no longer allowed.
