regel / loudml

Loud ML is the first open-source AI solution for ICT and IoT automation
Other
295 stars 93 forks source link

Scheduled forecasting LoudML 1.6.0 #175

Open KevinM23 opened 4 years ago

KevinM23 commented 4 years ago

Hello,

I'm trying to use the example provided here: https://github.com/regel/loudml/blob/master/loudml/examples/config.yml

# Uncomment the following lines to perform a one day forecast
# and update this forecast every ten minutes for all models.
# Note the {{model_name}} placeholder:
#scheduled_jobs:
#  - name: "forecast({{model_name}}) every five minutes"
#    relative_url: "/models/{{model_name}}/_forecast"
#    method: post
#    params:
#      from: "now"
#      to: "now+1d"
#    every:
#      count: 5
#      unit: minutes

However, when using the provided example, it does not work:

loudml_1      | INFO:root:job[42d1a3b9-affa-488b-8f3d-929944e9d613] starting, nice=0
loudml_1      | ERROR:root:job[42d1a3b9-affa-488b-8f3d-929944e9d613] failed: Bucket not found (name = 'telegraf_autogen_disk')
loudml_1      | 127.0.0.1 - - [2020-01-21 09:14:30] "POST /models/telegraf_disk_mean_used_percent_host_c5437e0962fb_1m/_eval?from=1579598000&output_bucket=loudml&flag_abnormal_data=True&save_output_data=True&to=1579598060 HTTP/1.1" 404 177 0.036808
loudml_1      | ERROR:root:error executing scheduled job '_eval(telegraf_disk_mean_used_percent_host_c5437e0962fb_1m)':NOT FOUND

The model is working fine and it's able to forecast (manually). So I'm unsure why it says ' NOT FOUND ' when using a scheduled job?

KevinM23 commented 4 years ago

Apparently, whether I configure this or not in the loudml.yml file makes no difference. So the whole scheduled_jobs function is not working.

regel commented 4 years ago

Hi, Thanks for the logs. So the error is”bucket not found”

loudml_1 | ERROR:root:job[42d1a3b9-affa-488b-8f3d-929944e9d613] failed: Bucket not found (name = 'telegraf_autogen_disk')

Actual root cause: #148