Skip to main content

django-processinfo is a Django application to collect information about the running server processes.

Project description

django-processinfo is a experimental Django application to collect information about the running server processes.

This only works, if /proc/$$/status exists. So only on only on unix/linux like platforms.

What is it not:

more info: http://www.python-forum.de/viewtopic.php?f=6&t=27168 (de)

Here some screenshot how it looks like:

install

pip install django-processinfo

usage

add to settings.py:

import os

import django_processinfo


INSTALLED_APPS = (
    ...
    'django_processinfo',
    ...
)

MIDDLEWARE_CLASSES = (
    'django_processinfo.middlewares.django_processinfo.ProcessInfoMiddleware',
    ...
)

# Put templates above admin contrib, e.g.:
TEMPLATE_DIRS = (
    ...
    os.path.join(os.path.abspath(os.path.dirname(django_processinfo.__file__)), "templates/"),
    ...
)

# include app settings from ./django_processinfo/app_settings.py
from django_processinfo import app_settings as PROCESSINFO

# Change settings like this:
PROCESSINFO.ADD_INFO = True

run: syncdb to create database tables.

ProcessInfoMiddleware

The ProcessInfoMiddleware can actually be inserted anywhere. However, it should be added far above. Thus, to capture everything.

For performance enhancement, put ProcessInfoMiddleware after LocalSyncCacheMiddleware. Then, however, lacks some statistical values​​ (in every cache hit).

history

  • v0.3.0

    • Display some system information from /proc/meminfo and ‘load average’

    • Many Bugfixes

  • v0.2.0

    • Many things changes! Recreate tables, e.g: ./manage.py reset django_processinfo

  • v0.1.0

    • first Version

donation

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-processinfo-0.3.0.0823.tar.gz (13.3 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