Skip to content

Commit

Permalink
Fix README for for_app_factory()
Browse files Browse the repository at this point in the history
  • Loading branch information
rycus86 committed Jun 11, 2020
1 parent a5ab7a5 commit 2b8c5fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ the demo in the [examples/sample-signals](https://github.com/rycus86/prometheus_

## App Factory Pattern

This library also supports the Flask [app factory pattern](http://flask.pocoo.org/docs/1.0/patterns/appfactories/). Use the `init_app` method to attach the library to one or more application objects. Note, that to use this mode, you'll need to pass in `None` for the `app` in the constructor.
This library also supports the Flask [app factory pattern](http://flask.pocoo.org/docs/1.0/patterns/appfactories/). Use the `init_app` method to attach the library to one or more application objects. Note, that to use this mode, you'll need to use the `for_app_factory()` class method to create the `metrics` instance, or pass in `None` for the `app` in the constructor.

```python
metrics = PrometheusMetrics.for_app_factory()
Expand Down
2 changes: 1 addition & 1 deletion prometheus_flask_exporter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,4 +747,4 @@ def _is_string(value):
return isinstance(value, str) # python3


__version__ = '0.14.0'
__version__ = '0.14.1'
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
setup(
name='prometheus_flask_exporter',
packages=['prometheus_flask_exporter'],
version='0.14.0',
version='0.14.1',
description='Prometheus metrics exporter for Flask',
long_description=long_description,
long_description_content_type='text/markdown',
license='MIT',
author='Viktor Adam',
author_email='rycus86@gmail.com',
url='https://github.com/rycus86/prometheus_flask_exporter',
download_url='https://github.com/rycus86/prometheus_flask_exporter/archive/0.14.0.tar.gz',
download_url='https://github.com/rycus86/prometheus_flask_exporter/archive/0.14.1.tar.gz',
keywords=['prometheus', 'flask', 'monitoring', 'exporter'],
classifiers=[
'Development Status :: 4 - Beta',
Expand Down

0 comments on commit 2b8c5fd

Please sign in to comment.