Node.js Monitoring with Prometheus+Grafana
Published in
5 min readDec 14, 2019
Is this you?
- Running Node.JS express applications in staging/production
- Not sure on how many times api routes are called
- Not sure on how fast api routes responds to the user
- Interested in self-hosted monitoring solution
Less articles. More git clones.
Well, here is the finished sample code repo if you’d like to see it in action:
- https://github.com/teamzerolabs/express-monitoring
yarn start
to have the server and metrics exporter up and running.- Continue if you want to know how metrics are wired up into
prometheus
andgrafana
- Need help setting things up and give recommendations? Contact us at
info@teamzerolabs.com
Hello world
In this article, we will be monitoring this short express app.
Start by cloning the repo, and run yarn dev
. Once the server is up and running, try hitting the api in the browser/postman/curl a couple of times. Next, we will learn about prometheus and…