It looks like this has been asked before in various forms, but not for a while.
We are building a set of nodejs services that will be processing jobs from queues. These services have no need for an http server (fwiw, they’ll be running on kubernetes).
We’d like to use Prometheus for metrics collection across our infrastructure, but we’re having trouble wrapping our heads around this.
Is there any way to get metrics from these services into Prometheus (both default and custom metrics) WITHOUT requiring them to serve http? It seems like this is just an assumption of the Prometheus architecture. Yes, we know there is pushgateway but all the doc makes it clear it’s not intended for this use case.
We know it’s trivial to have these nodejs services expose an http server (it’s built in to nodejs). In fact, we’ve already done that work.
It just feels… weird.
Is there an approach that we’re missing? Thanks…