hastic-zzz / hastic-grafana-app

Hastic data management server for labeling patterns and anomalies in Grafana
https://hastic.io
GNU General Public License v3.0
179 stars 18 forks source link

"Cannot read poperty "type" of undefined" #362

Closed DirkFries closed 5 years ago

DirkFries commented 5 years ago

Hi @all,

I use

hastic-grafana-app 0.3.6 hastic-server 0.3.6 Grafana 6.2.1

While trying to add a new analytic unit I can choose my Hastic Datasource, name the unit, choose both "Detector Type" and Type, but if I click on "create" I get the following error message :

Error while saving analytic unit
Cannot read poperty "type" of undefined

(see file attached)

It doesn't seem to make any difference what "Detector Type" and "Type" I choose.

Can anyone give me a hint what might be wrong ?

Thanks a lot !

1

amper43 commented 5 years ago

Hi @DirkFries

Look like you haven't chosen any datasource in the Queries tab and don't have any query. Please try to make a query in the Queries tab (the first one) and then make an analytic unit.

amper43 commented 5 years ago

this usecase will be handled correctly after fix https://github.com/hastic/hastic-grafana-app/issues/363

DirkFries commented 5 years ago

Thanks a lot - this hint did help me. Instead of choosing my "real" datasource (Prometheus) I chose "Hastic" instead in the Queries dialog.