appmetrics-prometheus icon indicating copy to clipboard operation
appmetrics-prometheus copied to clipboard

Export a method to get prometheus metrics without mounting to /metrics

Open raymondfeng opened this issue 6 years ago • 3 comments

I would like to use appmetrics with https://github.com/strongloop/loopback-next/pull/3339. The issue is that we want to control the REST endpoints. It would be nice to have a method from this module to get prometheus metrics without mounting to /metrics.

raymondfeng avatar Jul 16 '19 17:07 raymondfeng

@raymondfeng do you want the numeric values, or do you want a function(req, res) ... that you can mount on an express path explicitly?

sam-github avatar Nov 19 '19 23:11 sam-github

@sam-github I would prefer to get numeric values or the textual metrics in prometheus formats as we expose more metrics beyond appmetrics.

raymondfeng avatar Nov 19 '19 23:11 raymondfeng

That makes sense, and should be not too hard, I will try to find time in the next weeks.

sam-github avatar Nov 20 '19 00:11 sam-github