Skip to main content

python-sadf provides a simple way to create system utilisation reports using sysstat and the Pandas api.

Example

import sadf
from sadf import fieldgroups as fg

cmd = sadf.SadfCommand(start_time='09:00:00',
                       end_time='18:00:00')

cmd.field_groups = [
    fg.CPULoad(all_fields=True),
    fg.Queue(),
    fg.ProcessAndContextSwitch(),
    fg.IO(),
    fg.Memory(all_fields=True),
]

report = cmd.run()

memory_report = report.reports['memory']\
    .resample('30T').mean()

ldavg_report = report.reports['queue']\
    .resample('10T').rolling(window=3).mean()\
    .dropna()\
    .loc[:, ['ldavg-1', 'ldavg-5', 'ldavg-15']]

Author

Joshua Griffiths <jgriffiths@x86-64.io>

License

Apache - See LICENSE file

Release files for sadf 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sadf 0.1.2
File Size Uploaded
sadf-0.1.2.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sadf 0.1.2
File Interpreter ABI Platform
sadf-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size:19.6 kB

Release files / sadf-0.1.2.tar.gz

Download URL sadf-0.1.2.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
258993e2b3b2f504ce76ec8f018d0d1f59d29f7b70e6e652c35dc820e5544361
BLAKE2b-256 checksum
How to use checksums
a56d9b5daa9bb434a8dbcd38841aeee70153e6b81f1996d639e04acb67fd8a52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

Release files / sadf-0.1.2-py3-none-any.whl

Download URL sadf-0.1.2-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d34d31c045c70eb56ece7110b22842c18193725e7fe5f4f9fbfc437dd19d9495
BLAKE2b-256 checksum
How to use checksums
61a3ef8ed1fc13b9267afb58055f25775e5e90ef928d873ce7e7e6c2a739ab11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page