A Django app to save cpu usage and view stats.
Project description
ROI BURO sample project
Name
ROI BURO sample test project
Description
This is Django-based sample test project which collect information about CPU usage and shows this stats at HTML page. There are client - linux daemon written on Python, which measures CPU utilization periodically and server - django application, which receives measures via REST API.
Installation
-
Add "roiburo" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'roiburo', ]
-
Include the sample project URLconf in your project urls.py like this:
path('roiburo/', include('roiburo.urls')),
-
Run
python manage.py makemigrations roiburo
to create project migrations. -
Run
python manage.py migrate
to create models. -
Start the development server
python manage.py runserver
. -
Edit daemon api_url setting in client/config.ini, set it to
http://127.0.0.1:8000/roiburo/api/v1/core/system-states
. -
Start daemon from
client
folder by runningpython main.py
. -
Visit http://127.0.0.1:8000/roiburo/api/v1/core/system-state-details to view statistics.
-
API docs is available at http://127.0.0.1:8000/roiburo/api/schema/swagger-ui#/
Features
- Django 3.2
- Python 3.9
- 12-Factor based settings via django-environ
- Optimized settings
- OpenAPI based docs via drf-spectacular
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
File details
Details for the file django-roi-buro-sample-project-0.1.10.tar.gz
.
File metadata
- Download URL: django-roi-buro-sample-project-0.1.10.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd41e96deca3eb620efc6d6d2d72ce317239cca2deab2907b4c34552d027a258 |
|
MD5 | e9081cf67ece4d5901f3f8dbba215340 |
|
BLAKE2b-256 | 1aa0f652845ea57ce53764f26d869c25a7a0cf2f39acf4f15124aa3b09edca32 |