O'Reilly logo

Mastering Web Application Development with Express by Alexandru Vlăduțu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Collecting metrics

There are commercial services that take care of gathering as much data as possible from our Express applications, from process metrics to operating system metrics, and so on. We can choose to use such a service, or we can collect data on our own.

However, we will next focus on gathering data from our applications and creating a dashboard with real-time charts.

Among the metrics, we will collect the following parameters:

  • Requests per second
  • Response time
  • CPU usage
  • Event loop delay
  • Memory usage
  • OS load average

The dashboard will look like in the following screenshot once we're done implementing everything:

Collecting metrics

For this application, we will use ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required