actix-web-prom icon indicating copy to clipboard operation
actix-web-prom copied to clipboard

Actix-web middleware to expose Prometheus metrics

Results 15 actix-web-prom issues
Sort by recently updated
recently updated
newest added

Anyhow can work with boxed errors, but only of they are also Send and Sync. Both traits are implemented by error used anyway, so they just need to be declared,...

**Description:** Whenever /metrics is curled, internally it shows 404 return code even if the URL /metrics exists and gives output. Also that 404 code is not seen in /metrics output....

This is largely a clone of the Actix Logger middleware's `exclude` and `exclude_regex` APIs.

This allows users to specify a set of regexes that should be replaced in the path, to avoid having a gigantic set of metrics when the path contains resource IDs

I'd be happy to contribute a PR to support it if there is interest.

While the prometheus library allows for customizing [histogram buckets](https://docs.rs/prometheus/0.5.0/prometheus/struct.HistogramOpts.html#method.buckets), actix-web-prom does not expose this ability. It would be nice to provide buckets that are more pertinent to expected performance. Is...

Currently the timing of the reponse times seems off. I think because on line 355 and 356: ` fut: self.service.call(req), clock: SystemTime::now(),` Is in the wrong order, so the processing...

From the source code: ``` // We short circuit the response status and body to serve the endpoint // automagically. This way the user does not need to set the...

This PR: - checks resources map to avoid recording whatever path the client sends

Currently, when an endpoint receives a 404, it extends the Prometheus metrics response by approx ~15 new lines / ~1.5KB. For example, my server does not include a `/time.php` endpont,...