A helper library for pulling data from netdata into a pandas dataframe.
Project description
netdata-pandas
A helper library to pull data from netdata api into a pandas dataframe.
Install
pip install netdata-pandas
Quickstart
Get some data into a pandas dataframe.
from netdata_pandas.data import get_data
df = get_data('london.my-netdata.io', ['system.cpu','system.load'], after=-60, before=0)
print(df.shape)
df.head()
(61, 12)
<style scoped>
.dataframe tbody tr th:only-of-type {
vertical-align: middle;
}
.dataframe tbody tr th {
vertical-align: top;
}
.dataframe thead th {
text-align: right;
}
</style>
system.cpu|guest_nice | system.cpu|guest | system.cpu|steal | system.cpu|softirq | system.cpu|irq | system.cpu|user | system.cpu|system | system.cpu|nice | system.cpu|iowait | system.load|load1 | system.load|load5 | system.load|load15 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
time_idx | ||||||||||||
1592257125 | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | 0.0 | 0.0 | 0.0 |
1592257129 | 0.0 | 0.0 | 0.0 | 0.000000 | 0.0 | 0.501253 | 0.751880 | 0.0 | 0.0 | NaN | NaN | NaN |
1592257130 | 0.0 | 0.0 | 0.0 | 0.000000 | 0.0 | 0.501253 | 0.751880 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
1592257131 | 0.0 | 0.0 | 0.0 | 0.249377 | 0.0 | 0.997506 | 0.498753 | 0.0 | 0.0 | NaN | NaN | NaN |
1592257132 | 0.0 | 0.0 | 0.0 | 0.000000 | 0.0 | 0.503778 | 0.755668 | 0.0 | 0.0 | NaN | NaN | NaN |
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
netdata_pandas-0.0.10.tar.gz
(9.9 kB
view hashes)
Built Distribution
Close
Hashes for netdata_pandas-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a28ff6acc17293c47db42de7fe29284d91b08eb3f6de553972d1af49e5540cc4 |
|
MD5 | d2023af314c3d35dbbd6a562b52be6cb |
|
BLAKE2b-256 | 938b49b9c94c860315ac384f4a0cfaa467e50342deeac0f119df829a9b1bda7a |