@ -18,14 +18,17 @@ and restart your `$GRAFANA_PATH/bin/grafana-server` server.
You should have [hastic-server](https://github.com/hastic/hastic-server) running to use anomaly detection.
You should have [hastic-server](https://github.com/hastic/hastic-server) running to use anomaly detection.
- set [template variable](http://docs.grafana.org/reference/templating/) `$backendUrl` with URL of your hastic-server instance (e.g. `http://localhost:8000`) in your dashboard
- open new dasboard where you want to see Hastic panel
- set metrics in `Metrics` tab
- open Dashboard `Settings` (top right corner) and then `Varables`
- 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
- go to `Analytics tab` and create new anomaly
- go to `Analytics tab` and create new anomaly
- label your data:
- label your data:
- click button with chart icon
- click button with chart icon
- highlight anomalies on graph holding Ctrl button
- highlight anomalies on graph holding `Ctrl` button on Windows or `Cmd` on Mac
- when you finished labeling - click button with chart icon once more
- 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)
- you should see `Learning` status while hastic-server is learning (first learning can take a while).
- when `Learning` status dissapear - you should see anomalies labeled in your graph
- when `Learning` status dissapear - you should see anomalies labeled in your graph