Skip to content

Commit

Permalink
[Issue #1] Remove asgi dependency from requirements.txt and add descr…
Browse files Browse the repository at this point in the history
…iption form README.md
  • Loading branch information
thenodon committed Dec 9, 2019
1 parent 00e837f commit 689c880
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 18 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,17 @@ scrape_configs:

The switch -p enable setting of the port.

## Production with gunicorn
Running with default config.yml. The default location is current directory
## Production deployment
The are a number of ASGI containers that can be can use to deploy *monitor-exporter*. The dependency for these are not
included in the distribution.

### Deploying with gunicorn
First install the guincorn dependency into the python environment.

pip install gunicorn
pip install uvicorn
Running with the default config.yml. The default location is current directory.

gunicorn --access-logfile /dev/null -w 4 -k uvicorn.workers.UvicornWorker "wsgi:create_app()"

Expand Down
32 changes: 16 additions & 16 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
aiofiles==0.4.0
aiohttp==3.6.1
aiohttp==3.6.2
APScheduler==3.6.3
async-timeout==3.0.1
attrs==19.1.0
attrs==19.3.0
blinker==1.4
certifi==2019.6.16
certifi==2019.11.28
chardet==3.0.4
Click==7.0
coverage==4.5.4
dataclasses==0.6
Flask-Ext==0.1
gunicorn==19.9.0
dataclasses==0.7
h11==0.9.0
h2==3.1.1
hpack==3.0.0
Expand All @@ -18,19 +16,21 @@ hyperframe==5.2.0
idna==2.8
idna-ssl==1.1.0
itsdangerous==1.1.0
Jinja2==2.10.1
Jinja2==2.10.3
MarkupSafe==1.1.1
multidict==4.5.2
multidict==4.6.1
prometheus-client==0.7.1
python-json-logger==0.1.11
pytoml==0.1.21
PyYAML==5.1.2
Quart==0.6.14
pytz==2019.3
PyYAML==5.2
Quart==0.6.15
redis==3.3.11
requests==2.22.0
six==1.13.0
sortedcontainers==2.1.0
typing-extensions==3.7.4
urllib3==1.25.3
Werkzeug==0.15.5
typing-extensions==3.7.4.1
tzlocal==2.0.0
urllib3==1.25.7
wsproto==0.15.0
yarl==1.3.0
redis==3.3.8
yarl==1.4.2

0 comments on commit 689c880

Please sign in to comment.