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 and to return these statistics with different filters and aggregation methods.
It can be deployed just next to a MONARC instance or on a dedicated server.
The collected statistics can be sent to an other stats instance.
Deployment
The following assumes you have already installed git
, poetry
, and
Python >= 3.6.12
.
$ sudo apt install postgresql
$ git clone https://github.com/monarc-project/stats-service
$ cd stats-service/
$ npm install
$ cp instance/production.py.cfg instance/production.py
$ poetry install
$ poetry shell
$ export FLASK_APP=runserver.py
$ export FLASK_ENV=development
$ export STATS_CONFIG=production.py
$ flask db_create
$ flask db_init
$ flask client_create --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
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.3.0.tar.gz
(711.5 kB
view hashes)
Built Distribution
statsservice-0.3.0-py3-none-any.whl
(736.6 kB
view hashes)
Close
Hashes for statsservice-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28f5b0951d7ffd973a8633a7f916d12a0b8237393015500fbf59372e71fffd00 |
|
MD5 | 624937c8897059e3c7ae0ac798872ef6 |
|
BLAKE2b-256 | 7ba09ef24634d38fa532faa841931b15c6e013b454b002275fe23b8fbabeb7b8 |