Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

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

Open
raymondfeng opened this issue Jul 16, 2019 · 3 comments

Comments

@raymondfeng
Copy link

I would like to use appmetrics with loopbackio/loopback-next#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.

@sam-github
Copy link
Contributor

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

@raymondfeng
Copy link
Author

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

@sam-github
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants