Parse sysstat (sa/sar) output into Pandas Dataframes
Project description
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
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
sadf-0.1.2.tar.gz
(10.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
sadf-0.1.2-py3-none-any.whl
(9.5 kB
view details)
File details
Details for the file sadf-0.1.2.tar.gz.
File metadata
- Download URL: sadf-0.1.2.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
258993e2b3b2f504ce76ec8f018d0d1f59d29f7b70e6e652c35dc820e5544361
|
|
| MD5 |
b235c4bfeac667a2e69bcf73f34c3605
|
|
| BLAKE2b-256 |
a56d9b5daa9bb434a8dbcd38841aeee70153e6b81f1996d639e04acb67fd8a52
|
File details
Details for the file sadf-0.1.2-py3-none-any.whl.
File metadata
- Download URL: sadf-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d34d31c045c70eb56ece7110b22842c18193725e7fe5f4f9fbfc437dd19d9495
|
|
| MD5 |
1ac51a89175e2b958f815ce1aa276281
|
|
| BLAKE2b-256 |
61a3ef8ed1fc13b9267afb58055f25775e5e90ef928d873ce7e7e6c2a739ab11
|