Python library for Netdata 'Insights' features.
Project description
Netdata Insights
Netdata Insights.
Install
pip install netdata_insights
Quickstart
import random
import pandas as pd
import numpy as np
from netdata_insights.correlations.core import run_model_dict
from netdata_insights.data.utils import get_data_dict, get_chart_list
# pick some charts
#charts = random.sample(get_chart_list(host='london.my-netdata.io'),2)
charts = ['system.cpu']
# get some data
dict_baseline = get_data_dict(after=-120, before=0, host='london.my-netdata.io', charts=charts)
dict_highlight = get_data_dict(after=-560, before=-120, host='london.my-netdata.io', charts=charts)
# run correlations
results = run_model_dict('ks', dict_baseline, dict_highlight)
results
{'data': {'system.cpu': {'softirq': {'score': 0.0661},
'iowait': {'score': 0.0071},
'guest': {'score': 0.0},
'nice': {'score': 0.0},
'steal': {'score': 0.0405},
'system': {'score': 0.1518},
'irq': {'score': 0.0},
'guest_nice': {'score': 0.0},
'user': {'score': 0.2244}}},
'summary': {'model_level': 'dim',
'n_charts': 1,
'n_dims': 9,
'n_bad_data': 0,
'fit_success': 9,
'fit_default': 0,
'fit_fail': 0,
'success_rate': 1.0,
'bad_data_rate': 0.0,
'n_lags': 0,
'fit_manual': 0}}
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
Built Distribution
Close
Hashes for netdata_insights_alt-0.1.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a80276d478a283ab1cb591001ddfc949f652c30b6546f233473e508a1e588652 |
|
MD5 | 9527378f32bfbfdc8d8fdae629173ab8 |
|
BLAKE2b-256 | 48d32e8c9bc2c2d1248a1db8d8e288cc7e074d0d317052236d7138368cf3dcb3 |
Close
Hashes for netdata_insights_alt-0.1.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46d72935522cf4160720d1b9aec2cc3e0c73231b2920284c47f1c5d55329320a |
|
MD5 | b3aabc65669e460b3216493379ee13c0 |
|
BLAKE2b-256 | fc6ea63256011c8048c320fbfaa4ad2c7fef38b1cd4301441d2a53cc0f648c9c |