# Monitor node-red performance with Prometheus

**URL:** <https://discourse.nodered.org/t/monitor-node-red-performance-with-prometheus/28715>\
**Category:** General\
**Created:** [22 June 2020 09:11 UTC](https://discourse.nodered.org/t/monitor-node-red-performance-with-prometheus/28715 "2020-06-22T09:11:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gauravdasgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gauravdasgupta/32/23372_2.png) [@gauravdasgupta](https://discourse.nodered.org/u/gauravdasgupta)\
**Post date:** [22 June 2020 09:11 UTC](https://discourse.nodered.org/t/monitor-node-red-performance-with-prometheus/28715/1 "2020-06-22T09:11:43Z")

</div>

Hi here, this is the very first time I am asking a question here!

I have node-red running on top of a Kubernetes cluster, I want to perform stress/load testing for my node-red, I want to monitor the metrics like CPU usage, memory used and Requests Per Second, using prometheus (which is also running on the same cluster in a separate pod). I can see some metrics in the logs when setting metrics:true in settings.js but I am not able to understand **how to expose an endpoint for prometheus**?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [22 June 2020 09:28 UTC](https://discourse.nodered.org/t/monitor-node-red-performance-with-prometheus/28715/2 "2020-06-22T09:28:36Z")

</div>

Hi @gauravdasgupta, there is no built-in prometheus integration in Node-RED.

You could look at using [https://www.npmjs.com/package/appmetrics-prometheus](https://www.npmjs.com/package/appmetrics-prometheus)

---

<div class="post-metadata">

**Author:** ![gauravdasgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gauravdasgupta/32/23372_2.png) [@gauravdasgupta](https://discourse.nodered.org/u/gauravdasgupta)\
**Post date:** [22 June 2020 09:33 UTC](https://discourse.nodered.org/t/monitor-node-red-performance-with-prometheus/28715/3 "2020-06-22T09:33:39Z")

</div>

@knolleary, thanks for showing a direction! I will be progressing using the same and will revert when I am done with my solution!! 😃

---

<div class="post-metadata">

**Author:** ![gauravdasgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gauravdasgupta/32/23372_2.png) [@gauravdasgupta](https://discourse.nodered.org/u/gauravdasgupta)\
**Post date:** [22 June 2020 10:30 UTC](https://discourse.nodered.org/t/monitor-node-red-performance-with-prometheus/28715/4 "2020-06-22T10:30:18Z")

</div>

@knolleary thanks a ton.. it worked out of the box.. readme was enough 🤩

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/9/9981bc5555dd974c3b4fb04b0cd8cac43c091e27.png)

---

<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:** [6 July 2020 10:30 UTC](https://discourse.nodered.org/t/monitor-node-red-performance-with-prometheus/28715/5 "2020-07-06T10:30:27Z")

</div>

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