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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: netdata_insights_alt-0.1.19.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.19.tar.gz
Algorithm Hash digest
SHA256 9abc3c574b5acb6f53e5e3dc7096ae4632f2104d7b3ac887f7d0ea6ec541067f
MD5 dc3aca0792d2e7e579bdf31a14733de8
BLAKE2b-256 0c1803f529127fe56fa3f66522902a0bdd5cee8dce6bf2d09aa4219d3b483e29

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: netdata_insights_alt-0.1.19-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.19-py3-none-any.whl
Algorithm Hash digest
SHA256 64bd632a834087ee1472a132bc1c96cfa0767589fb4d6c07c59db5fc5aba7b2b
MD5 6d490ad646db362078cb1fadfbde3c41
BLAKE2b-256 526ee8254f484d962c00ecaffe396eec34a0e784c4bc4c380f4223dc514cd1c6

See more details on using hashes here.

Provenance

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