- You can now use versions of prometheus-client newer than v0.4.0.
- You can no longer use versions of prometheus-client newer than v0.4.0, as they do not currently work with this package
- You can now use versions of prometheus-client newer than v0.2.0 (thanks @leohemsted)
- Fixes a bug with uncaught AttributeErrors if the
before_request
function did not run beforeteardown_request
- Makes basic auth optional
- Disabled caching for the metrics endpoint.
- Set the
prometheus_multiproc_dir
before importing prometheus client. - Fixed duplicate metrics.
- Change the metrics path label to use the request route pattern rather than the actual path to cut down on the number of timeseries returned.
- Move metrics to separate file.
- Add authentication for metrics endpoint when deployed onto PaaS.
- Compress metrics response with gzip if provided in header.
- Labels without matching rule respond with
No endpoint
. - Expose Counter, Gauge, Summary, Histogram to users without exposing the Prometheus client library.
- Add a
child_exit
hook for gunicorn multiprocessing support. - Added flake8 support and tests for the code.
- Added a Makefile to make it easier to run tests and publish the library to PyPI.
- Updated the README.
- First version of gds_metrics_python wrapper.
- Added Counter and Histogram stats based on metrics delivered by [GDS metrics Ruby][].
http_server_request_duration_seconds_bucket, http_server_request_duration_seconds_count, http_server_request_duration_seconds_sum, http_server_exceptions_total