@grafana/scenes-ml
v0.2.0
Published
Machine Learning extensions to Grafana Scenes
Downloads
166
Maintainers
Keywords
Readme
About @grafana/scenes-ml
This library contains a collection of @grafana/scenes
objects which can be added to your Scenes to run interactive, responsive machine learning algorithms directly in the browser.
@grafana/scenes-ml
currently contains implementations of the following:
- forecasting (using the MSTL/ETS algorithms)
- outlier detection (using the median absolute difference or DBSCAN algorithms)
- changepoint detection (using either Bayesian Online Changepoint Detection or Autoregressive Gaussian Process Changepoint Detection)
Under the hood, the heavy lifting is largely powered by the augurs
library, which runs inside WebAssembly.
See that library for more information on the underlying algorithms.
Usage
@grafana/scenes-ml
is designed to be used in Grafana app plugins or Grafana core as a standard npm dependency. However, because of the WASM module in a dependency, a couple of changes are required to an app plugin's build process.
- Install
@grafana/scenes-ml
usingyarn add @grafana/scenes-ml
ornpm install @grafana/scenes-ml
to addscenes-ml
to your dependencies. - If using a plugin, ensure the create-plugin version is up to date by following this guide. This is important to make sure your plugin's Webpack configuration knows how to load the package.
- Import components from
@grafana/scenes-ml
and use as normal!