django-processinfo

0.6.4 GPL (GNU General Public License)    
  UNRATED

  370 downloads

A Django application to collect information about the running server processes

description

download

specs

changelog

django-processinfo is an experimental Django app 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:

- track user actions
- collect infos which are found in e.g. apache.log
- not a profiler (read https://code.djangoproject.com/wiki/ProfilingDjango)

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

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).
read more   
Last updated on September 27th, 2012

#collect information #server processes #Django #server #processes #information

django-processinfodjango-processinfo

0 User reviews so far.

SUBMIT