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
Documentation
More detailed documentation can be found at https://netdata.github.io/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)
print(df.head())
(61, 12)
system.cpu|guest_nice system.cpu|guest system.cpu|steal \
time_idx
1600179540 NaN NaN NaN
1600179542 0.0 0.0 0.251889
1600179543 0.0 0.0 0.000000
1600179544 0.0 0.0 0.000000
1600179545 0.0 0.0 0.000000
system.cpu|softirq system.cpu|irq system.cpu|user \
time_idx
1600179540 NaN NaN NaN
1600179542 0.0 0.0 0.503778
1600179543 0.0 0.0 0.750000
1600179544 0.0 0.0 0.251889
1600179545 0.0 0.0 0.503778
system.cpu|system system.cpu|nice system.cpu|iowait \
time_idx
1600179540 NaN NaN NaN
1600179542 0.503778 0.0 0.0
1600179543 0.500000 0.0 0.0
1600179544 0.503778 0.0 0.0
1600179545 0.503778 0.0 0.0
system.load|load1 system.load|load5 system.load|load15
time_idx
1600179540 0.04888 0.03 0.0
1600179542 0.04888 0.03 0.0
1600179543 0.04888 0.03 0.0
1600179544 0.04888 0.03 0.0
1600179545 0.04000 0.03 0.0
Examples
You can find some more examples in the examples folder.
Or if you just want to play with it right now you can use this Google Colab notebook to quickly get started.
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.28.tar.gz
(11.8 kB
view details)
Built Distribution
File details
Details for the file netdata_pandas-0.0.28.tar.gz
.
File metadata
- Download URL: netdata_pandas-0.0.28.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7081381a01d95959147b85e3b2ab9b5572b89f156452d1925e2c5ed6e83fc2c5 |
|
MD5 | 9e851a1ed7b54f65ed0a064e066d788b |
|
BLAKE2b-256 | a24af6ac241809430b19d4a4d97033e2b409db6848427457255f931cf8ec42d0 |
File details
Details for the file netdata_pandas-0.0.28-py3-none-any.whl
.
File metadata
- Download URL: netdata_pandas-0.0.28-py3-none-any.whl
- Upload date:
- Size: 11.4 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/50.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 030228b25d11a3074fda8bd2dcfd4638621ac98d14c817ae82d565a9d9a45aa9 |
|
MD5 | 0b70942e25dd291442ae886310fd4f39 |
|
BLAKE2b-256 | e9b3ff259ba1285cf9a28216edebe1cb516f38a0b2d02f1283be7ef8aca38428 |