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

New model on duplicated panel has "output_bucket" = null #17

Open toni-moreno opened 4 years ago

toni-moreno commented 4 years ago

Hello @vsergeyev

After duplicated and recreated a new model , the new one seem to send data to a "null" output_bucket. Could be a bug or perhaps I did something wrong?

Thank you very much again for this work!

image

toni-moreno commented 4 years ago

The workaround is , remove the fist pannel , stop and restart the job

image the output bucket now is ok

> show-model linux_metrics_cpu_mean_usage_system__time_5m
- settings:
    bucket_interval: 5m
    default_bucket: xxxxxxxxxx_linux
    features:
    - default: 0
      field: usage_system
      io: io
      match_all: []
      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__time_5m
    offset: 10s
    run:
      flag_abnormal_data: true
      output_bucket: xxxxxxxxxxx_loudml
      save_output_data: true
    seasonality:
      daytime: false
      weekday: false
    span: 100
    type: donut
  training:
    job_id: bc894112-9c26-4d14-83b9-1912ccec4646
    progress:
      eval: 10
      max_evals: 10
    state: done
vsergeyev commented 4 years ago

Hello @toni-moreno

Thank you for detailed bug report!

Yeah, it looks I don't handle this event when duplicating panel.

It is a bug and going to fix it.

vsergeyev commented 4 years ago

Hope this is fixed in latest commit. Added information about LoudML server / input bucket / output bucket into tooltip, so it should display an actual settings used for "Create Baseline" 1-click ML button.

tooltip