# Node-Red embedding Grafana - Get click actions

**URL:** <https://discourse.nodered.org/t/node-red-embedding-grafana-get-click-actions/44878>\
**Category:** Dashboard\
**Created:** [28 April 2021 15:30 UTC](https://discourse.nodered.org/t/node-red-embedding-grafana-get-click-actions/44878 "2021-04-28T15:30:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![esalles](https://avatars.discourse-cdn.com/v4/letter/e/ac8455/32.png) [@esalles](https://discourse.nodered.org/u/esalles)\
**Post date:** [28 April 2021 15:30 UTC](https://discourse.nodered.org/t/node-red-embedding-grafana-get-click-actions/44878/1 "2021-04-28T15:30:21Z")

</div>

Hello Guys,

I embedded some grafana panels into dashboard, based on iframes.  
Now, I'm looking for a way to get the zoom selection out from the panel (and I'm not so skilled in JS stuffs unfortunately) to manage some data calculation....

Does have have an example of you to manage it? By adding some listeners or something else?

---

<div class="post-metadata">

**Author:** ![esalles](https://avatars.discourse-cdn.com/v4/letter/e/ac8455/32.png) [@esalles](https://discourse.nodered.org/u/esalles)\
**Post date:** [29 April 2021 09:20 UTC](https://discourse.nodered.org/t/node-red-embedding-grafana-get-click-actions/44878/2 "2021-04-29T09:20:36Z")

</div>

To anybody that face hte same need, I give here the way I've implemented to answer the problem.

My concern was about getting a time segment from my chart in order to process some calculations.  
Thus, I used the native annotation feature which allows you defining points and regions with description and tags.  
Then, by using GRAFANA APIs, I was able to read out the annotation info and process my required job.

For more information about APIs, see [API Tutorial: Create API tokens and dashboards for an organization | Grafana Labs](https://grafana.com/docs/grafana/latest/http_api/create-api-tokens-for-org/) .  
For more information about annotations, see [Annotations HTTP API | Grafana Labs](https://grafana.com/docs/grafana/latest/http_api/annotations/) .

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 May 2021 09:21 UTC](https://discourse.nodered.org/t/node-red-embedding-grafana-get-click-actions/44878/3 "2021-05-13T09:21:16Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
