O'Reilly logo

TypeScript Microservices by Parth Ghiya

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

Prometheus and Grafana

Prometheus is a famous open-source tool, which provides powerful data compression options along with fast data querying for time series data analysis for Node.js monitoring. Prometheus has built-in visualization methods, but it's not configurable enough to leverage in dashboards. That's where Grafana steps in. In this section, we will look at how to monitor a Node.js microservice using Prometheus and Grafana. So let's get our hands dirty with coding. You can follow along with the example in Chapter 9/prometheus-grafana in the source:

  1. As always, initialize a new project from chapter-2/first microservice. Add the following dependencies:
npm install prom-client response-time --save

These dependencies will make sure that ...

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