# Performance profiling and observability

**URL:** <https://discourse.nodered.org/t/performance-profiling-and-observability/69796>\
**Category:** Developing Nodes\
**Created:** [30 October 2022 17:34 UTC](https://discourse.nodered.org/t/performance-profiling-and-observability/69796 "2022-10-30T17:34:42Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![jackcarey](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jackcarey/32/61101_2.png) [@jackcarey](https://discourse.nodered.org/u/jackcarey)\
**Post date:** [15 November 2022 13:42 UTC](https://discourse.nodered.org/t/performance-profiling-and-observability/69796/13 "2022-11-15T13:42:21Z")

</div>

I've taken a look at Grafana and I am struggling with it, to be honest. I can plot some data, but I am unsure how I could track the "execution windows" of the blocks I'm interested in and plot stats for those. I made a post on the Grafana forum to this effect:

> **[How can I group Prometheus metrics based on dynamic time windows?](https://community.grafana.com/t/how-can-i-group-prometheus-metrics-based-on-dynamic-time-windows/75741)**
>
> Hello, I’m new to Grafana so bare with me while I explain this as I think it’s a complicated ask. What Grafana version and what operating system are you using? 9.2.4 What are you trying to achieve? I am recording the CPU and memory usage...

I'm using [Messaging Hooks : Node-RED](https://nodered.org/docs/api/hooks/messaging/) to log the start and end times of each node execution I'm interested in and the idea is that I can group CPU and memory metrics based on _each_ start time and the _next nearest_ end time. Such that from that I can pull out stats from each grouping or from each type of node I am monitoring. Does that make sense? Do you know of any example dashboards or methods I can look at to create these execution windows? Thanks

---

_[View the full topic](https://discourse.nodered.org/t/performance-profiling-and-observability/69796)._
