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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file netdata_insights_alt-0.1.21.tar.gz.

File metadata

  • Download URL: netdata_insights_alt-0.1.21.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7

File hashes

Hashes for netdata_insights_alt-0.1.21.tar.gz
Algorithm Hash digest
SHA256 a80276d478a283ab1cb591001ddfc949f652c30b6546f233473e508a1e588652
MD5 9527378f32bfbfdc8d8fdae629173ab8
BLAKE2b-256 48d32e8c9bc2c2d1248a1db8d8e288cc7e074d0d317052236d7138368cf3dcb3

See more details on using hashes here.

File details

Details for the file netdata_insights_alt-0.1.21-py3-none-any.whl.

File metadata

  • Download URL: netdata_insights_alt-0.1.21-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7

File hashes

Hashes for netdata_insights_alt-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 46d72935522cf4160720d1b9aec2cc3e0c73231b2920284c47f1c5d55329320a
MD5 b3aabc65669e460b3216493379ee13c0
BLAKE2b-256 fc6ea63256011c8048c320fbfaa4ad2c7fef38b1cd4301441d2a53cc0f648c9c

See more details on using hashes here.

Supported by

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