SkeLLLa / fastify-metrics

Prometheus metrics exporter for Fastify
https://savelife.in.ua/en/donate-en/
MIT License
100 stars 33 forks source link

routeBlacklist when registeredRoutesOnly: false #107

Open swc-jk opened 1 month ago

swc-jk commented 1 month ago

Currently when registeredRoutesOnly: false is set, only the methodBlacklist is used for blacklisting. It would be nice to also be able to use routeBlacklist to ignore endpoints like /ping or /health. https://github.com/SkeLLLa/fastify-metrics/blob/35efa3593483be4b15da01238e41104bdf999f4b/src/fastify-metrics.ts#L337

SkeLLLa commented 1 month ago

Hi. Would you like to submit a PR for this issue?