Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Assign AttributeStore NameLoad attr BinOpAdd ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr TryExcept body ImportFrom alias alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call NameLoad NameLoad Str NameStore body Return Call AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad Expr Call NameLoad BinOpMod Str Call NameLoad If NameLoad body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad While NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad For NameStore BinOpSub NameLoad NameLoad body If CompareNotIn Str NameLoad body Continue For NameStore NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp TupleLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num NameLoad comprehension NameStore Call AttributeLoad NameLoad attr For NameStore BinOpSub NameLoad NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num If CompareNotIn Str NameLoad body Continue If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Continue Assign NameStore BinOpAdd Call AttributeLoad Call AttributeLoad Str attr ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad attr Str Str Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword ListLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Continue Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword TupleLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword ListLoad Str Str Str Str Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr BoolOpOr AttributeLoad NameLoad attr Str keyword NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A logging N/A logging.config N/A json N/A multiprocessing N/A optparse N/A os N/A signal N/A sys N/A time N/A N/A sys path N/A N/A N/A N/A N/A os path dirname __file__ N/A sys path N/A N/A setproctitle getproctitle setproctitle N/A N/A N/A ImportError N/A N/A setproctitle None N/A N/A N/A N/A sys path append N/A N/A N/A os path abspath N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ ../ diamond.utils.classes initialize_collector diamond.utils.classes load_collectors diamond.utils.scheduler collector_process diamond.utils.signals signal_to_exception diamond.utils.signals SIGHUPException N/A LOG_FORMAT %(asctime)s - %(name)s - %(levelname)s - %(message)s load_config N/A N/A configfile N/A N/A N/A configfile_path N/A N/A N/A os path abspath configfile N/A N/A open configfile_path r f N/A N/A N/A N/A json load f N/A Server N/A object N/A N/A 
    Server class loads and starts Handlers and Collectors
     __init__ N/A N/A self configfile N/A N/A N/A N/A self log N/A N/A logging getLogger diamond N/A N/A self configfile configfile N/A N/A self config None N/A setproctitle N/A N/A oldproctitle N/A getproctitle N/A N/A setproctitle N/A %s - SyncManager N/A getproctitle N/A setproctitle N/A N/A N/A setproctitle oldproctitle N/A run N/A N/A self N/A N/A N/A 
        Load handler and collector classes and then start collectors
         N/A N/A self config N/A load_config N/A self configfile N/A collectors N/A load_collectors N/A N/A self config N/A diamondCollectorsPath N/A N/A N/A signal signal N/A signal SIGHUP signal_to_exception N/A True N/A N/A N/A N/A active_children N/A N/A multiprocessing active_children N/A running_processes N/A N/A process active_children N/A N/A N/A N/A running_processes append N/A process name N/A running_processes N/A set running_processes N/A running_collectors N/A N/A collector N/A N/A self config N/A diamondCollectors N/A N/A N/A N/A running_collectors append collector N/A running_collectors N/A set running_collectors N/A N/A N/A N/A self log debug N/A Running collectors: %s running_collectors N/A process_name N/A running_processes running_collectors N/A N/A N/A Collector process_name N/A N/A N/A process active_children N/A N/A N/A N/A process name process_name N/A N/A N/A N/A process terminate N/A collector_classes N/A dict N/A N/A N/A N/A N/A N/A cls __name__ split . N/A -1 cls N/A cls N/A N/A collectors values N/A process_name N/A running_collectors running_processes N/A N/A collector_name N/A N/A N/A process_name split N/A 0 N/A N/A Collector collector_name N/A N/A N/A N/A collector_name collector_classes N/A N/A N/A N/A N/A self log error Can not find collector %s collector_name N/A N/A configfile N/A N/A N/A N/A N/A / join N/A N/A N/A self config N/A collectorsConfigPath process_name replace _ .conf N/A configfile N/A load_config configfile N/A collector N/A initialize_collector N/A collector_classes N/A collector_name name process_name config N/A self config configfile configfile handlers N/A N/A N/A collector None N/A N/A N/A N/A N/A self log error Failed to load collector %s process_name N/A N/A N/A N/A time sleep 1 N/A process N/A N/A multiprocessing Process name process_name target collector_process args N/A collector N/A self log N/A N/A process daemon True N/A N/A N/A process start N/A N/A N/A time sleep 1 N/A N/A N/A SIGHUPException N/A N/A N/A N/A N/A self log info Reloading state due to HUP N/A N/A self config N/A load_config N/A self configfile N/A collectors N/A load_collectors N/A N/A self config N/A diamondCollectorsPath N/A N/A main N/A N/A N/A N/A N/A parser N/A N/A optparse OptionParser N/A N/A N/A parser add_option -c --config-file dest config_file help Fullerite configuration file metavar FILE N/A N/A N/A parser add_option -l --log_level default INFO choices N/A INFO DEBUG WARN CRITICAL NOTSET ERROR help Set the log level to this level N/A N/A N/A parser add_option -f --log_config help Configure logging with the specified file N/A N/A options args N/A N/A parser parse_args N/A N/A N/A logging basicConfig level N/A N/A logging getLevelName N/A N/A options log_level INFO format LOG_FORMAT N/A N/A options log_config N/A N/A N/A N/A N/A logging config fileConfig N/A options log_config N/A N/A N/A N/A Server N/A options config_file run N/A N/A N/A __name__ __main__ N/A N/A N/A main