earthgecko / skyline

Anomaly detection

Home Page:http://earthgecko-skyline.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Panorama check file fails

earthgecko opened this issue · comments

This has always been an occasional error and not successfully debugged as of yet. It is related to the occasional errors being reported relating the Panorama not being able to determine the from_timestamp variable from the metric check file. Mirage does not suffer from this bug relating to load_metric_vars strangely.

 error :: failed to read from_timestamp variable from check file

It is intermittent, but a bug and needs to be debugged more. In progress

[root@skyline-dev-3 ~] cat /var/log/skyline/panorama.log | grep -c "error :: failed to read"
25
[root@skyline-dev-3 ~] cat /var/log/skyline/panorama.log | grep -c "loading metric variables from import"
840
[root@zpf-skyline-dev-3 ~]

Traceback in develop

2016-08-22 16:42:05 :: 7874 :: Traceback (most recent call last):
  File "/opt/skyline/github/skyline/skyline/panorama/panorama.py", line 297, in spin_process
    metric_vars.from_timestamp
AttributeError: 'module' object has no attribute 'from_timestamp'

2016-08-22 16:42:05 :: 7874 :: error :: failed to read from_timestamp variable from check file - /opt/skyline/panaroma/check/1471884121.stats.statsd.graphiteStats.flush_length.txt

In develop Mirage has been moved over to the skyline_functions.py
load_metrics_vars method in an attempt to remove all previous
global metrics_vars declarations but this has not resolved the issue, it
persists with Panorama.