Module Expr Str Import alias Import alias ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call NameLoad TryExcept body Assign NameStore Call NameLoad Str Str Assign NameStore Str For NameStore NameLoad body If CompareIs Call AttributeLoad NameLoad attr Str NameLoad NameLoad body If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index NameLoad Call NameLoad orelse If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index SubscriptLoad NameLoad Index NameLoad NameLoad orelse Continue Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad Return For NameStore Call AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad NameLoad orelse Continue decorator_list decorator_list
N/A N/A 
DRBD metric collector

  Read and publish metrics from all available resources in /proc/drbd
 N/A diamond.collector N/A re DRBDCollector N/A N/A N/A diamond collector Collector N/A N/A 
    DRBD Simple metric collector
     get_default_config_help N/A N/A self N/A N/A N/A config_help N/A N/A N/A super DRBDCollector self get_default_config_help N/A N/A N/A config_help update N/A N/A config_help N/A get_default_config N/A N/A self N/A N/A N/A 
        Returns the default collector settings
         N/A config N/A N/A N/A super DRBDCollector self get_default_config N/A N/A N/A config update N/A path drbd N/A config N/A collect N/A N/A self N/A N/A N/A 
        Overrides the Collector.collect method
         N/A performance_indicators N/A ns nr dw dr al bm lo pe ua ap ep wo oos cs ro ds network_send network_receive disk_write disk_read activity_log bit_map local_count pending unacknowledged application_pending epochs write_order out_of_sync connection_state roles disk_states N/A results N/A dict N/A N/A N/A statusfile N/A open /proc/drbd r N/A current_resource N/A line statusfile N/A N/A N/A N/A N/A re search version line None N/A N/A N/A N/A re search  \d: cs line N/A N/A matches N/A N/A re match  (\d): (cs:\w+) (ro:\w+/\w+) (ds:\w+/\w+) (\w{1}) .* line N/A current_resource N/A N/A matches group 1 N/A N/A results N/A current_resource N/A dict N/A N/A N/A N/A re search \sns: line N/A N/A metrics N/A N/A N/A N/A line strip split N/A metric metrics N/A N/A N/A item value N/A N/A metric split : N/A N/A N/A results N/A current_resource N/A N/A performance_indicators N/A item value N/A N/A N/A N/A N/A statusfile close N/A N/A N/A IOError N/A errormsg N/A N/A N/A N/A N/A self log error N/A N/A Can't read DRBD status file: {0} format errormsg N/A N/A resource N/A N/A results keys N/A N/A N/A metric_name metric_value N/A N/A N/A results N/A resource items N/A N/A N/A N/A metric_value isdigit N/A N/A N/A N/A self publish N/A N/A resource . metric_name metric_value N/A N/A N/A N/A