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']]
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)
| File | Size | Uploaded | |
|---|---|---|---|
| sadf-0.1.2.tar.gz | 10.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|