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 hashes)

Uploaded Source

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