A helper library to pull data from netdata api into a pandas dataframe.
pip install netdata-pandas
More detailed documentation can be found at https://netdata.github.io/netdata-pandas
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())
An alternative way to call get_data()
is to define what hosts and charts you want via the host_charts_dict
param:
# define list of charts for each host you want data for
host_charts_dict = {
"london.my-netdata.io" : ['system.io','system.ip'],
"newyork.my-netdata.io" : ['system.io','system.net'],
}
df = get_data(host_charts_dict=host_charts_dict, host_prefix=True)
print(df.shape)
print(df.head())
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.