Instrumenting Node.js code with Prometheus custom metrics
Automatic instrumentation is great, but to get the most out of your monitoring you often need to instrument your code. In this article I am going to explain how to instrument a Node.js express app with custom metrics using the Prometheus prom-client package. Although this article specifically addresses Node.js and express, my hope is that the general concepts are applicable to other languages too.