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())
(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


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

Uploaded Source

Built Distribution

netdata_pandas-0.0.22-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netdata_pandas-0.0.22.tar.gz
  • Upload date:
  • Size: 11.3 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

Hashes for netdata_pandas-0.0.22.tar.gz
Algorithm Hash digest
SHA256 d384371fcb2d6be46bbacf1a57d514938a2eaa9f7ef16f2fcc355dc893b041bb
MD5 4924a4553c52cac4243f14d77ee063c3
BLAKE2b-256 22b12650c4b1db0dd20ca9e9aab48a0cb17721018e355d2d4d3c3b2ee906bdbe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netdata_pandas-0.0.22-py3-none-any.whl
  • Upload date:
  • Size: 11.0 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

Hashes for netdata_pandas-0.0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 c071a0f56d66484f0a63414d6f774b81b1e9cc691b8345c6fff8c3cba691a518
MD5 008906cce2fc8defc8148077d7bc7dd9
BLAKE2b-256 bcabf1506755182e441e40a7e3a5cca6214acbb6b6973d2cae1b5ea43ea2cb17

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