Simple Prometheus exporter for express.js

Get up and running with Prometheus monitoring and express.js in few minutes

Kristjan Hiis
Monitoring Metric

--

Photo by Irvan Smith on Unsplash

Today I want to spend time on a subject that is very dear to me, Prometheus and exporters, ultimately monitoring altogether. Firstly I would like to spend some of the reading time to explain why I choose Prometheus as my weapon of choice when it comes to hosted monitoring software.

As per prometheus.io Prometheus is …
… an open-source systems monitoring and alerting toolkit originally built at SoundCloud. Since its inception in 2012, many companies and organizations have adopted Prometheus, and the project has a very active developer and user community. It is now a standalone open source project and maintained independently of any company. To emphasize this, and to clarify the project’s governance structure, Prometheus joined the Cloud Native Computing Foundation in 2016 as the second hosted the project, after Kubernetes.

And for me, personally, Prometheus is just so stupid simple to use and works 99.99% of the time as expected. It wields its own query language called PromQL and deems to be very easy to use. For developers, it couldn’t be easier to send metrics towards the system, the time-series metrics collection via the pull model over HTTP — which means that your…

--

--