Stats Service for MONARC.
Project description
Stats Service for MONARC
Presentation
This component provides an API in order to collect statistics from one or several MONARC instances. It can be deployed just next to MONARC (eventually in a virtual machine) or on a dedicated server.
These aggregated statistics can then be sent to a central instance.
Deployment
The following assumes you have already installed git
, poetry
, and
Python >= 3.8
.
$ sudo apt install postgresql
$ git clone https://github.com/monarc-project/stats-service
$ cd stats-service/
$ cp instance/production.py.cfg instance/production.py
$ poetry install
$ poetry shell
$ export FLASK_APP=runserver.py
$ export FLASK_ENV=development
$ flask db_create
$ flask db_init
$ flask create_organization --name CASES
Name: CASES
Token: SylsDTZTBk2zAkg016vW_aCuO1XQDXPsxrLuI1TG7z5sYvUfRlVf5R4g6kDnLI_o-c5iqrswrWzPANDKXmtV7Q
Created at: 2020-06-16 14:25:32.947745
$ flask run
* Serving Flask app "runserver.py" (lazy loading)
* Environment: development
* Debug mode: on
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!
* Debugger PIN: 268-178-811
For production you can use Gunicorn or mod_wsgi
.
Documentation
License
Stats Service is under the GNU Affero General Public License version 3.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
statsservice-0.1.5.tar.gz
(24.4 kB
view hashes)
Built Distribution
Close
Hashes for statsservice-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be0936bc2a7b1140d584d8ca757feeaa1738b79dc0a4aad39db44283e888bbb6 |
|
MD5 | afb53f0d89ec42842af876009660e0c9 |
|
BLAKE2b-256 | 8015e6467427b236a469601d123080afc0c2fb8fb0d7f1cd7b371902b8501ab8 |