Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias alias ImportFrom alias alias alias alias ImportFrom alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Num handlers ExceptHandler body Expr Call NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareNotEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad BinOpDiv Call NameLoad Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad If CompareEq Call NameLoad NameLoad Num body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TryExcept body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num Assign NameStore ListLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignAdd SubscriptStore NameLoad Index NameLoad Num handlers ExceptHandler type NameLoad body AugAssignAdd SubscriptStore NameLoad Index Str Num ExceptHandler type NameLoad body AugAssignAdd SubscriptStore NameLoad Index Str Num ExceptHandler type NameLoad body AugAssignAdd SubscriptStore NameLoad Index Str Num ExceptHandler type NameLoad body AugAssignAdd SubscriptStore NameLoad Index Str Num ExceptHandler body AugAssignAdd SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str While Num body Assign NameStore Call NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad Num Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr Continue Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad Num Continue Assign NameStore ListLoad For NameStore Call NameLoad Num BinOpAdd AttributeLoad NameLoad attr Num body If CompareGt NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Break Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call NameLoad While Num body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareNotIn NameLoad Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse AugAssignAdd SubscriptStore NameLoad Index NameLoad NameLoad handlers ExceptHandler type NameLoad body Break While Num body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareNotIn NameLoad Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse AugAssignAdd SubscriptStore NameLoad Index NameLoad NameLoad handlers ExceptHandler type NameLoad body Break If AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body If CompareIn SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num body Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr With Call NameLoad NameLoad Str NameStore body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str BinOpSub Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str BinOpSub Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str BinOpMod Str BinOpSub Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str BinOpMod Str BinOpSub Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpDiv BinOpSub SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Num Assign NameStore BinOpDiv BinOpMult Num BinOpSub Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Slice ListLoad If CompareLt BinOpSub Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad Num decorator_list decorator_list
N/A N/A logging Queue Empty redis StrictRedis time time sleep threading Thread collections defaultdict multiprocessing Process Manager Queue msgpack Unpacker unpackb packb os path kill getpid system math ceil N/A traceback N/A operator N/A socket N/A settings alerters trigger_alert algorithms run_selected_algorithm algorithm_exceptions * N/A logger N/A N/A logging getLogger AnalyzerLog Analyzer N/A Thread N/A __init__ N/A N/A self parent_pid N/A N/A N/A 
        Initialize the Analyzer
         N/A N/A N/A N/A super Analyzer self __init__ N/A N/A self redis_conn N/A StrictRedis unix_socket_path N/A settings REDIS_SOCKET_PATH N/A N/A self daemon True N/A N/A self parent_pid parent_pid N/A N/A self current_pid N/A getpid N/A N/A self anomalous_metrics N/A N/A N/A Manager list N/A N/A self exceptions_q N/A Queue N/A N/A self anomaly_breakdown_q N/A Queue N/A check_if_parent_is_alive N/A N/A self N/A N/A N/A 
        Self explanatory
         N/A N/A N/A N/A kill N/A self current_pid 0 N/A N/A kill N/A self parent_pid 0 N/A N/A N/A N/A N/A exit 0 N/A send_graphite_metric N/A N/A self name value N/A N/A N/A N/A N/A settings GRAPHITE_HOST N/A N/A sock N/A N/A socket socket N/A N/A N/A sock connect N/A N/A settings GRAPHITE_HOST N/A settings CARBON_PORT N/A N/A N/A sock sendall N/A %s %s %i
 N/A name value N/A time N/A N/A N/A sock close N/A True N/A False N/A spin_process N/A N/A self i unique_metrics N/A N/A N/A 
        Assign a bunch of metrics for a process to analyze.
         N/A keys_per_processor N/A int N/A ceil N/A N/A float N/A len unique_metrics N/A float N/A settings ANALYZER_PROCESSES N/A N/A i N/A settings ANALYZER_PROCESSES N/A N/A assigned_max N/A len unique_metrics N/A N/A assigned_max N/A i keys_per_processor N/A assigned_min N/A assigned_max keys_per_processor N/A assigned_keys N/A range assigned_min assigned_max N/A assigned_metrics N/A N/A unique_metrics N/A index N/A index assigned_keys N/A N/A N/A len assigned_metrics 0 N/A N/A N/A raw_assigned N/A N/A N/A self redis_conn mget assigned_metrics N/A exceptions N/A defaultdict int N/A anomaly_breakdown N/A defaultdict int N/A N/A i metric_name N/A enumerate assigned_metrics N/A N/A N/A N/A self check_if_parent_is_alive N/A N/A N/A raw_series N/A raw_assigned N/A i N/A unpacker N/A Unpacker use_list False N/A N/A N/A unpacker feed raw_series N/A timeseries N/A list unpacker N/A N/A anomalous ensemble datapoint N/A run_selected_algorithm timeseries metric_name N/A anomalous N/A N/A base_name N/A N/A metric_name replace N/A settings FULL_NAMESPACE 1 N/A metric N/A datapoint base_name N/A N/A N/A N/A self anomalous_metrics append metric N/A N/A index value N/A enumerate ensemble N/A N/A value N/A N/A algorithm N/A N/A settings ALGORITHMS N/A index N/A N/A anomaly_breakdown N/A algorithm 1 N/A N/A N/A TypeError N/A N/A N/A exceptions N/A DeletedByRoomba 1 N/A N/A TooShort N/A N/A N/A exceptions N/A TooShort 1 N/A N/A Stale N/A N/A N/A exceptions N/A Stale 1 N/A N/A Boring N/A N/A N/A exceptions N/A Boring 1 N/A N/A N/A N/A exceptions N/A Other 1 N/A N/A N/A logger info N/A N/A traceback format_exc N/A N/A key value N/A N/A anomaly_breakdown items N/A N/A N/A N/A N/A self anomaly_breakdown_q put N/A key value N/A N/A key value N/A N/A exceptions items N/A N/A N/A N/A N/A self exceptions_q put N/A key value N/A run N/A N/A self N/A N/A N/A 
        Called when the process intializes.
         N/A 1 N/A N/A now N/A time N/A N/A N/A N/A N/A N/A self redis_conn ping N/A N/A N/A N/A N/A N/A logger error N/A skyline can't connect to redis at socket path %s N/A settings REDIS_SOCKET_PATH N/A N/A sleep 10 N/A N/A self redis_conn N/A StrictRedis unix_socket_path N/A settings REDIS_SOCKET_PATH N/A N/A unique_metrics N/A list N/A N/A N/A self redis_conn smembers N/A N/A settings FULL_NAMESPACE unique_metrics N/A N/A N/A len unique_metrics 0 N/A N/A N/A N/A logger info no metrics in redis. try adding some - see README N/A N/A sleep 10 N/A N/A pids N/A N/A i N/A range 1 N/A N/A settings ANALYZER_PROCESSES 1 N/A N/A N/A i N/A len unique_metrics N/A N/A N/A N/A logger info WARNING: skyline is set for more cores than needed. N/A N/A p N/A Process target N/A self spin_process args N/A i unique_metrics N/A N/A N/A pids append p N/A N/A N/A p start N/A p pids N/A N/A N/A N/A p join N/A exceptions N/A dict N/A anomaly_breakdown N/A dict N/A 1 N/A N/A N/A N/A N/A key value N/A N/A N/A self anomaly_breakdown_q get_nowait N/A N/A key N/A N/A anomaly_breakdown keys N/A N/A N/A anomaly_breakdown N/A key value N/A N/A N/A anomaly_breakdown N/A key value N/A N/A N/A Empty N/A N/A N/A 1 N/A N/A N/A N/A N/A key value N/A N/A N/A self exceptions_q get_nowait N/A N/A key N/A N/A exceptions keys N/A N/A N/A exceptions N/A key value N/A N/A N/A exceptions N/A key value N/A N/A N/A Empty N/A N/A N/A N/A settings ENABLE_ALERTS N/A N/A alert N/A settings ALERTS N/A N/A metric N/A self anomalous_metrics N/A N/A N/A N/A alert N/A 0 N/A metric N/A 1 N/A N/A cache_key N/A last_alert.%s.%s N/A N/A alert N/A 1 N/A metric N/A 1 N/A N/A N/A last_alert N/A N/A N/A self redis_conn get cache_key N/A N/A last_alert N/A N/A N/A N/A N/A self redis_conn setex cache_key N/A alert N/A 2 N/A packb N/A metric N/A 0 N/A N/A trigger_alert alert metric N/A N/A N/A Exception N/A e N/A N/A N/A N/A logger error N/A couldn't send alert: %s e N/A filename N/A N/A path abspath N/A N/A path join N/A N/A path dirname __file__ .. N/A settings ANOMALY_DUMP N/A N/A open filename w fh N/A N/A anomalous_metrics N/A list N/A self anomalous_metrics N/A N/A N/A anomalous_metrics sort key N/A N/A operator itemgetter 1 N/A N/A N/A fh write N/A handle_data(%s) anomalous_metrics N/A N/A N/A logger info N/A seconds to run    :: %.2f N/A N/A time now N/A N/A N/A logger info N/A total metrics     :: %d N/A len unique_metrics N/A N/A N/A logger info N/A total analyzed    :: %d N/A N/A len unique_metrics N/A sum N/A N/A exceptions values N/A N/A N/A logger info N/A total anomalies   :: %d N/A len N/A self anomalous_metrics N/A N/A N/A logger info N/A exception stats   :: %s exceptions N/A N/A N/A logger info N/A anomaly breakdown :: %s anomaly_breakdown N/A N/A N/A self send_graphite_metric skyline.analyzer.run_time N/A %.2f N/A N/A time now N/A N/A N/A self send_graphite_metric skyline.analyzer.total_analyzed N/A %.2f N/A N/A len unique_metrics N/A sum N/A N/A exceptions values N/A raw_series N/A N/A N/A self redis_conn get N/A N/A settings FULL_NAMESPACE N/A settings CANARY_METRIC N/A N/A raw_series None N/A N/A unpacker N/A Unpacker use_list False N/A N/A N/A unpacker feed raw_series N/A timeseries N/A list unpacker N/A time_human N/A N/A N/A N/A timeseries N/A -1 N/A 0 N/A N/A timeseries N/A 0 N/A 0 3600 N/A projected N/A N/A 24 N/A N/A time now time_human N/A N/A N/A logger info N/A canary duration   :: %.2f time_human N/A N/A N/A self send_graphite_metric skyline.analyzer.duration N/A %.2f time_human N/A N/A N/A self send_graphite_metric skyline.analyzer.projected N/A %.2f projected N/A N/A N/A self anomalous_metrics N/A N/A N/A N/A N/A N/A time now 5 N/A N/A N/A N/A logger info sleeping due to low run time... N/A N/A sleep 10 N/A N/A