rocket_prometheus
rocket_prometheus copied to clipboard
Is there a way to exclude /metrics from the reporting
Is there a way to exclude specific routes like metrics
to exclude from the prometheus stats?
Not currently, no. I'd accept a PR to add a method to PrometheusMetrics
to include/exclude routes, possibly based on a closure accepting a Request
? It would probably require us to Box
the closure which adds an allocation and pointer chase, but that's unlikely to be a huge issue.