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:
- 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 ...