A Django app to receive and save cpu usage.
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('roi-buro/', include('roiburo.urls')),
-
Run
python manage.py migrate
to create sample project models. -
Start the development server and send POST request to http://127.0.0.1:8000/api/v1/core/system-states to create a cpu usage record.
-
Start daemon from
client
folder by runningpython main.py
. -
Visit http://127.0.0.1:8000/api/v1/core/system-state-details to view statistics.
-
API docs is available at http://127.0.0.1:8000/api/schema/swagger-ui#/
Project status
Completed
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
Hashes for django-roi-buro-sample-project-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8985d085417614d7b74ee410e0691d302573eea941ff8f3903c5a2cbffa5b7df |
|
MD5 | bd4f0cd93642e2b9b4c2fc8b6998b23e |
|
BLAKE2b-256 | 0ffbd2831f1e665e4f065dcb3cac5b974d0c1d5e7d0f83b9e268f78e4f042e78 |