vsergeyev / loudml-grafana-app

Visualization panel and datasource for Grafana to connect with Loud ML AI solution for ICT and IoT automation
https://vsergeyev.github.io/loudml-grafana-app/
MIT License
48 stars 20 forks source link

Save Model from datasource Form crash and removes model on the loudml server. #19

Open toni-moreno opened 4 years ago

toni-moreno commented 4 years ago

Hello @vsergeyev , I'm doing a extended testing to this Grafana APP , and it's wonderful, but I've found some little bugs, that I would like to see fix someday.

When trying to save new threshold values for anomalies with this UI.

image

Return this error

image

And also remove the model from the loudml server.

Before config

> show-model linux_metrics_cpu_mean_usage_system_host_myserver_time_5m
- settings:
    bucket_interval: 5m
    default_bucket: server_linux
    features:
    - default: 0
      field: usage_system
      io: io
      match_all:
      - tag: host
        value: myserver
      measurement: cpu
      metric: mean
      name: mean_usage_system
    grace_period: 0
    interval: 60s
    max_evals: 10
    max_threshold: 0
    min_threshold: 0
    name: linux_metrics_cpu_mean_usage_system_host_myserver_time_5m
    offset: 10s
    seasonality:
      daytime: false
      weekday: false
    span: 100
    type: donut
  training:
    job_id: 837dc74e-7da9-4ae2-9e37-8ee877904cb0
    progress:
      eval: 10
      max_evals: 10
    state: done

After config from UI

> show-model linux_metrics_cpu_mean_usage_system_host_myserver_time_5m
ERROR:root:NotFoundError(404, 'Model (linux_metrics_cpu_mean_usage_system_host_myserver_time_5m) not found')

I had to recreate again.

I could do some other or related test if you need.

Thank you very much !!

vsergeyev commented 4 years ago

Hello @toni-moreno !

You got the point, it is bug. I checked on my side.

Thank you for catching it, will fix asap.

vsergeyev commented 4 years ago

@toni-moreno issue should be fixes in latest commit.

Please give it a try with https://github.com/vsergeyev/loudml-grafana-app/blob/grafana/6.x/loudml-grafana-app-1.7.0dev-grafana6.zip