class Prometheus::Middleware::Collector

Collector is a Rack middleware that provides a sample implementation of a HTTP tracer.

By default metrics are registered on the global registry. Set the ‘:registry` option to use a custom registry.

By default metrics all have the prefix “http_server”. Set ‘:metrics_prefix` to something else if you like.

The request counter metric is broken down by code, method and path. The request duration metric is broken down by method and path.