#nodejs

27 Aug 2020 . tech .
Setup Prometheus-Grafana Metrics With PM2 Clusters
7 mins Read


I recently had to setup metrics monitoring for a node.js application that I have been running using PM2 clusters. This article provides an approach to do the same and I believe should be helpful to anyone wanting to collect metrics and setup grafana dashboard for their application which uses PM2 as a process manager and runs in cluster mode.

PM2... more

11 Jul 2020 . learning .
Building GraphQL API In Node.js
12 mins Read


This writeup summarises my experience of building a GraphQL API using Node.js and MongoDB. I’ve found it easy to develop APIs that have CRUD operations of fairly medium complexity and do not have many layers of authorization to access data. It is also fabulous how well all three technologies; Node, Mongo, and GraphQL integrate without any issues. You can find... more