Stats Service for MONARC.
Project description
Stats Service for MONARC
Presentation
MONARC Stats Service is a libre software which is providing:
- an API in order to collect statistics from one or several MONARC instances and to return these statistics with different filters and aggregation methods;
- a dashboard that summarizes the current cybersecurity landscape. The charts are based on the statistics collected.
This software can be deployed just next to a MONARC instance or on a dedicated server.
The collected statistics can be sent to an other Stats Service instance.
The public official instance operated by CASES is available at https://dashboard.monarc.lu.
Documentation
To be found in the docs
directory of the source code, or
viewed online here.
Several installation ways are described.
The update procedure is also described.
Quick 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/
$ npm install
$ cp instance/production.py.cfg instance/production.py
$ poetry install --no-dev
$ poetry shell
$ pybabel compile -d statsservice/translations
$ export FLASK_APP=runserver.py
$ export FLASK_ENV=development
$ export STATS_CONFIG=production.py
$ flask db_create
$ flask db_init
$ flask db upgrade
$ 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
or use the docker image.
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
Built Distribution
Hashes for statsservice-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 591660a7c1439cf67b2d2922b2d7c1f43feeb1e8b3e3acfce96f7a887abc880e |
|
MD5 | 8eeb95484c7b8366cd8230369e44224b |
|
BLAKE2b-256 | add681ba42ed9851dbb8eeb1b25ca5ba49dfb0d73fc51b761b3885f0462f4fd8 |