Skip to main content

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

  1. Add "roiburo" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [ ... 'roiburo', ]

  2. Include the sample project URLconf in your project urls.py like this:

    path('roiburo/', include('roiburo.urls')),

  3. Run python manage.py makemigrations roiburo to create project migrations.

  4. Run python manage.py migrate to create models.

  5. Start the development server python manage.py runserver.

  6. Edit daemon api_url setting in client/config.ini, set it to http://127.0.0.1:8000/roiburo/api/v1/core/system-states.

  7. Start daemon from client folder by running python main.py.

  8. Visit http://127.0.0.1:8000/roiburo/api/v1/core/system-state-details to view statistics.

  9. API docs is available at http://127.0.0.1:8000/roiburo/api/schema/swagger-ui#/

Features

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-roi-buro-sample-project-0.1.10.tar.gz (9.0 kB view details)

Uploaded Source

File details

Details for the file django-roi-buro-sample-project-0.1.10.tar.gz.

File metadata

File hashes

Hashes for django-roi-buro-sample-project-0.1.10.tar.gz
Algorithm Hash digest
SHA256 fd41e96deca3eb620efc6d6d2d72ce317239cca2deab2907b4c34552d027a258
MD5 e9081cf67ece4d5901f3f8dbba215340
BLAKE2b-256 1aa0f652845ea57ce53764f26d869c25a7a0cf2f39acf4f15124aa3b09edca32

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page