nlopes / actix-web-prom

Actix-web middleware to expose Prometheus metrics
MIT License
89 stars 56 forks source link

Make the metrics endpoint available even if a pattern matches #40

Closed rabadin closed 3 years ago

rabadin commented 3 years ago

This fixes the case where the metrics endpoint matches a configured pattern. The problem was introduced by 2139a066: if there is a pattern that matches the metrics endpoint (for instance /metrics) then the current implementation will never return the metrics response.

nlopes commented 3 years ago

Thank you!