-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metrics not being computed when the application is forked into a child process #1889
Comments
Is this something that works using |
Before I look into anything here, you will need to confirm the behavior of both Given this library is a simple thin wrapper around |
Looking into siimon/prom-client#403 So yeah, definetly not something in this library |
Great! Thanks for looking into it. If they ever get support added and it still doesn't work, please feel free to re-open this issue. |
I created a new Nestjs project, Installed the lib and then copy pasted the example in the README of a counter. That worked fine.
However, forking the nestjs application into a sub-process and trying to increment the counter does not updates the metric value.
Even tough I increment the metric inside an infinite loop
The metric endpoint returns zero
I've created repo which replicates this issue:
https://github.com/quixote15/nestjs-prometheus-fork-issue
Can anybody help me with this?
The text was updated successfully, but these errors were encountered: