Skip to main content

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.

pypi package CI

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())
(60, 12)
            system.cpu|guest_nice  system.cpu|guest  system.cpu|steal  \
time_idx                                                                
1592303824                      0                 0          0.250627   
1592303825                      0                 0          0.000000   
1592303826                      0                 0          0.000000   
1592303827                      0                 0          0.000000   
1592303828                      0                 0          0.000000   

            system.cpu|softirq  system.cpu|irq  system.cpu|user  \
time_idx                                                          
1592303824            0.250627               0         0.501253   
1592303825            0.000000               0         1.250000   
1592303826            0.000000               0         0.502513   
1592303827            0.000000               0         1.005025   
1592303828            0.000000               0         1.002506   

            system.cpu|system  system.cpu|nice  system.cpu|iowait  \
time_idx                                                            
1592303824           0.501253                0                0.0   
1592303825           0.500000                0                0.0   
1592303826           0.502513                0                0.0   
1592303827           1.005025                0                0.0   
1592303828           0.250627                0                0.0   

            system.load|load1  system.load|load5  system.load|load15  
time_idx                                                              
1592303824                NaN                NaN                 NaN  
1592303825                0.0               0.02                 0.0  
1592303826                0.0               0.02                 0.0  
1592303827                0.0               0.02                 0.0  
1592303828                0.0               0.02                 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


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.15.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

netdata_pandas-0.0.15-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file netdata_pandas-0.0.15.tar.gz.

File metadata

  • Download URL: netdata_pandas-0.0.15.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for netdata_pandas-0.0.15.tar.gz
Algorithm Hash digest
SHA256 a1e99ebc89632b678796811352d90d9b1fe5ed7624e9432443745e277cdfbf9e
MD5 9272ad7cb8ee278cf89eeec26d3a76b2
BLAKE2b-256 d9b7eee3b56911ee806e8bd244db68098736a459f8af64b1e6d655064980af90

See more details on using hashes here.

File details

Details for the file netdata_pandas-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: netdata_pandas-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 10.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/44.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for netdata_pandas-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 a8c228acc041d55a959a6c3a0750d3f4f1456fb9aeefbae295036a313da544ee
MD5 0483fe87b3dac51217149525e3800b64
BLAKE2b-256 275e304445b522e37ed414ccb2d7e834138590ca02c2f7a8b6fb8fe2553c1b24

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page