Host stats
Project description
hoststats
hoststats captures resource usage (memory usage, CPU cycles, network transfers) for a set of hosts over a period of time.
A Python API is provided for starting and finishing collection, and pulling the results to a CSV file.
Usage
Install:
pip3 install hoststats
Start the hoststats server (must be done on each host on which you wish to collect stats):
hoststats start
Create a client on another host with:
# Get list of IPs/ hostnames for hosts to be monitored
ip_list = ["1.2.3.4", "5.6.7.8"]
# Set up the client
hs = HostStats(ip_list)
# Start collection
hs.start_collection()
# Wait some time
# Write stats to CSV
hs.stop_and_write_to_csv("hoststats.csv")
Development
Ensure pip
and setuptools
are up to date and install requirements.
To develop:
pip3 install -e .
To release, make sure you have set up Twine keyring
support, or a
pypirc
, then:
./release.sh
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
hoststats-0.0.1.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for hoststats-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f00b547c2dbee29cae7948515197be0cefe368b2183dc74429d73f02b24027f9 |
|
MD5 | 9be1c10b36bfc64c994d9f0b44f9fab8 |
|
BLAKE2b-256 | 90bcdf2aaea99783484c808929ed8a9cb2cec79aeaac9cb72a2e1444e6c05c31 |