A very simple set of methods to collect metrics about your servers
Project description
Python Server Metrics
============
A very simple set of methods to collect metrics about your servers
Installation
------------
To get the latest stable release from PyPi
.. code-block:: bash
pip install python-server-metrics
To get the latest commit from GitHub
.. code-block:: bash
pip install -e git+git://github.com/bitmazk/python-server-metrics.git#egg=server_metrics
Usage
-----
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
print get_memory()
print get_disk_usage('$HOME')
print get_database_size('my_role', 'my_db')
Contribute
----------
If you want to contribute to this project, please perform the following steps
.. code-block:: bash
# 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
============
A very simple set of methods to collect metrics about your servers
Installation
------------
To get the latest stable release from PyPi
.. code-block:: bash
pip install python-server-metrics
To get the latest commit from GitHub
.. code-block:: bash
pip install -e git+git://github.com/bitmazk/python-server-metrics.git#egg=server_metrics
Usage
-----
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
print get_memory()
print get_disk_usage('$HOME')
print get_database_size('my_role', 'my_db')
Contribute
----------
If you want to contribute to this project, please perform the following steps
.. code-block:: bash
# 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for python-server-metrics-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b97b87f1eaab67028ec67c258c6e114b28ede5f4f214249dfb037b535696fce0 |
|
MD5 | 5651f031f0d7377ed2425dcc25cf7a42 |
|
BLAKE2b-256 | 02b934a61b62e38ace5ea2319f4e50cc2f05bbf2873f0607f567524f3db4d785 |