-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Question about usage : network_concurrent_connections_count #498
Comments
Thanks for opening. The metric should be automatically part of the reported metics. I you |
Hello, Thank you for your quick answer 😄 Here is the output I get : Click to expand
There is no metric How do I use Promster ? I use expressApp.use(
createMiddleware({
options: {
normalizePath:
(path: string, rr: { req: express.Request }): string => rr.req.route?.path || rr.req.originalUrl || rr.req.url,
accuracies: ['s']
},
}),
);
const packageJson = require(join(appRootDir.get(), 'package.json'));
new PrometheusClient.Gauge({
name: 'version_info',
help: 'App version',
labelNames: ['version'],
}).set({ version: packageJson.version }, 1);
prometheusServer = await PromsterServer.createServer({ port: 9101 }); @tdeekens Do you see something missing ? |
Nope that looks good. It should come from gc-stats I think. Can you check there if they maybe dropped it? Maybe it also depends on the Node.js version or something else. I basically just forward whatever they offer. |
I don't see any reference to this metric in the project, except in the readme, that's why I created this issue. The |
Thanks. Maybe the example is misleading then. It could also be a stat one could build yourself from Node.js data or when using any proxy library. |
Closing this issue due to inactivity. Feel free to re-open if the discussion becomes relevant again. |
Hello,
First, I'd like to thank you for all the metrics you allow me to export.
I'm interesting by the metric you use in the README.md :
network_concurrent_connections_count
How can I expose it ? Do I have to implement it myself ? If yes, do you have any exemple ? I think something using :
server.getConnections
Thank you for your help,
Benjamin
Tech context:
The text was updated successfully, but these errors were encountered: