Closed piks2252 closed 3 years ago
Hi. The /metrics
path is excluded automatically, you don't need to do anything. Have you tested it?
HI @disjunction, Thanks for your quick reply. @piks2252 and me works on same team. please find the attachment, "/metrics" is retained in my data metrics and same is being scraped by Prometheus server, which is polluting our business/app APIs.
I'm afraid it's due to the way you use the module or a potential conflict with multiple prom clients. Could you provide the how the prom-client
and express-prom-bundle
are defined in your project.json
and also how you call promBundle()
in your app?
... and if you do anything directly with prom-client
, please mention it too
Hi @disjunction ,Thanks. we were running swagger-stats as well in our Application server. after removing, it worked fine. It would be better If you can mention in the readme, will be helpful for others.
Thanks @disjunction for your support.
Hello, First of all thank you so much for this library, I appreciate you hard word, Now i don't want to display
/metrics
request in my grafana dashboard, Is there any way to exclude/metrics
route I triedapp.use("/((?!metrics))*", promBundle({includePath: true}));
, but It blocks the/metrics
and returns no route found which was the only access point (target) for my Prometheus server to access metrics data. I just want to exclude "/metrics" path in my collection which is polluting my app's APIs. Thanks