Skip to main content

Python library for Netdata 'Insights' features.

Project description

Netdata Insights

Netdata Insights.

pypi package CI

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

netdata_insights_alt-0.1.21.tar.gz (13.0 kB view hashes)

Uploaded Source

Built Distribution

netdata_insights_alt-0.1.21-py3-none-any.whl (14.2 kB view hashes)

Uploaded Python 3

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