1

Are there any standard metrics publishing packages for node.js? I'm not asking about general metrics libraries, but rather packages that produce a specific set of metrics (e.g. http QPS, runtime memory usage, gc stats, etc...) If you wanted to offer a monitoring service for node.js users, what would you monitor?

  • Have you tried new relic? http://newrelic.com/nodejs – Ed Knowles Apr 27 '15 at 20:47
  • @EdwardKnowles, Thanks, I've looked at them briefly. But to be clear, I'm not looking for a monitoring solution, I'm wondering if there are a standard set of metrics that one might monitor. Do you know if newrelic provides a documented moniotoring interface to node apps? (I couldn't find information to that effect on their site). – Michael Muller Apr 28 '15 at 17:48

2 Answers2

3

I believe that Node Application Metrics ('appmetrics') provides what your looking for. This is a module that provides a set of metrics about a running Node.js process, rather than a monitoring solution in itself.

In version 1.0.2 is provides the following data types:

  • Environment
  • CPU
  • Memory
  • GC
  • Function profiling
  • HTTP
  • MySQL
  • MongoDB
  • Request tracking
  • Function trace
Chris Bailey
  • 292
  • 1
  • 3
-1

I'm not aware of any package that provides all of that metrics but you can collect most using very popular libraries like pidusage for process related metrics, mongodb driver to retrieve mongo stats, etc

You may read here (my post, bullet 12) about memory profiling

Yonatan
  • 1,816
  • 1
  • 14
  • 7