Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A very simple set of methods to collect metrics about your servers

Project description

A very simple set of methods to collect metrics about your servers


To get the latest stable release from PyPi

pip install python-server-metrics

To get the latest commit from GitHub

pip install -e git+git://


Simply import the package and use it anywhere in your python code:

from server_metrics.memory import get_memory
from server_metrics.hard_disk import get_disk_usage
from server_metrics.postgresql import get_database_size
from server_metrics.cpu import get_cpu_usage
from server_metrics.memcached import get_memcached_usage

print get_memory()
print get_disk_usage('$HOME')
print get_database_size('my_role', 'my_db')
print get_cpu_usage('user')
print get_memcached_usage('~/memcached.sock')


If you want to contribute to this project, please perform the following steps

# Fork this repository
# Clone your fork
mkvirtualenv -p python2.7 python-server-metrics
make develop

git co -b feature_branch master
# Implement your feature and tests
git add . && git commit
git push -u origin feature_branch
# Send us a pull request for your feature branch

Project details

Download files

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

Files for python-server-metrics, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size python-server-metrics-0.2.1.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page