Monitoring Memcached

In order to monitor Memcached, we will use a third-party package called django-memcache-status. This app displays statistics for your Memcached instances in the administration site. Install it with the following command:

pip install django-memcache-status==1.3

Edit the settings.py file and add 'memcache_status' to the INSTALLED_APPS setting:

INSTALLED_APPS = [    # ...    'memcache_status',]

Make sure Memcached is running, start the development server in another shell window, and open http://127.0.0.1:8000/admin/ in your browser. Log in to the administration site using a superuser. You should see the following block:

This graph ...

Get Django 2 by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.