You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.1 KiB

6 years ago
# Hastic Graph Panel
6 years ago
A better version of default Grafana's Graph Panel. Can render Anomalies & more.
6 years ago
In order to detect anomalies and make predictions, you need to install:
* [hastic-server](https://github.com/hastic/hastic-server)
* [Grafana >= 5.1.1](https://grafana.com/grafana/download)
6 years ago
6 years ago
<img src="https://hastic.io/images/cpu_white.gif" />
6 years ago
# Installation
Clone repo
```
cd $GRAFANA_PATH/data/plugins
git clone git@github.com:hastic/hastic-grafana-graph-panel.git
```
and restart your `$GRAFANA_PATH/bin/grafana-server` server.
6 years ago
6 years ago
# Usage
You should have [hastic-server](https://github.com/hastic/hastic-server) running to use anomaly detection.
- open new dasboard where you want to see Hastic panel
- open Dashboard `Settings` (top right corner) and then `Varables`
6 years ago
- Add new `Constant` [variable](http://docs.grafana.org/reference/templating/#variable-types) with `name` equals to `HASTIC_SERVER_URL` and `value` with URL of your hastic-server instance (e.g. `http://localhost:8000`) in your dashboard
- Save settings and close Settings window
- set one metrics in `Metrics` tab. Only one metric suported
6 years ago
- go to `Analytics tab` and create new anomaly
- label your data:
- click button with chart icon
- highlight anomalies on graph holding `Ctrl` button on Windows or `Cmd` on Mac
- when you finished labeling - click button with chart icon once more. `saving...` status should appear.
- you should see `Learning` status while hastic-server is learning (first learning can take a while).
6 years ago
- when `Learning` status dissapear - you should see anomalies labeled in your graph
- <img src="assets/mag_icon_light.png" /> this icon means that the anomaly was marked by the server
- <img src="assets/pin_icon_light.png" /> this icon means that the anomaly was marked by the user
6 years ago
6 years ago
# Development
## Build
6 years ago
```
npm install
npm run build
```
6 years ago
6 years ago
# Changelog
[Improvements]
* You can zoom during update
# Credits
Based on
* [grafana-plugin-template-webpack-typescript](https://github.com/CorpGlory/grafana-plugin-template-webpack-typescript)
* [@types/grafana](https://github.com/CorpGlory/types-grafana)