Starlette-exporter

Latest version: v0.23.0

Safety actively analyzes 682244 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 5

0.4.0

Fixes multiprocess registry (5 )

0.3.0

The application name can now be specified when creating the middleware:
python
app.add_middleware(PrometheusMiddleware, app_name="my_app")


This allows filtering metrics by application if you have several FastAPI apps exporting metrics to the same Prometheus service.

Author: paweldudzinski

0.2.0

This version provides a `group_paths` option to the PrometheusMiddleware constructor that will cause all metrics to be grouped by their router path.

This means that requests to endpoints with path variables like `/api/v1/shop/1234` and `/api/v1/shop/75` will appear in the metrics as `/api/v1/shop/{item_id}`. This might be helpful if you want metrics organized by HTTP path but don't want them broken down by each individual item in a collection.

0.1.0

Initial release of `starlette_exporter` with request counter and request duration histogram. Both metrics include the HTTP method, path, and status code. Successful requests/errors can be separated by status code.

Page 5 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.