Module Import alias Import alias Import alias Import alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str If BoolOpAnd CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad With Call NameLoad BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd Call NameLoad NameLoad CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Str body Assign NameStore ListComp Call AttributeLoad NameLoad attr Str comprehension NameStore NameLoad Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad Str NameLoad ExceptHandler type NameLoad name NameStore body Raise Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad Str body If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore NameLoad body Assign NameStore NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareNotIn NameLoad NameLoad body Assign NameStore NameLoad Break If Call NameLoad NameLoad NameLoad body If CompareNotEq SubscriptLoad NameLoad Index NameLoad NameLoad body Assign NameStore NameLoad Break orelse Assign NameStore NameLoad For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index NameLoad NameLoad body Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad Break If NameLoad body Expr Yield NameLoad decorator_list
N/A N/A json N/A os N/A logging N/A urllib2 urlparse urljoin MetricsError N/A Exception N/A __init__ N/A N/A self msg underlying_error N/A N/A N/A N/A N/A Exception __init__ self msg underlying_error N/A N/A self msg N/A str msg N/A N/A self underlying_error N/A str underlying_error N/A __str__ N/A N/A self N/A N/A N/A N/A %s (%s) N/A N/A self msg N/A self underlying_error N/A N/A Backend N/A object N/A __init__ N/A N/A self config logger N/A logging N/A N/A N/A self config config N/A N/A self logger logger N/A download_metrics_json N/A N/A self N/A N/A N/A url N/A urljoin N/A N/A self config graphite_url_server metrics/index.json N/A N/A N/A N/A N/A self config graphite_username None N/A N/A N/A self config graphite_password None N/A N/A username N/A N/A self config graphite_username N/A password N/A N/A self config graphite_password N/A passmanager N/A N/A urllib2 HTTPPasswordMgrWithDefaultRealm N/A N/A N/A passmanager add_password None url username password N/A authhandler N/A N/A urllib2 HTTPBasicAuthHandler passmanager N/A opener N/A N/A urllib2 build_opener authhandler N/A N/A N/A urllib2 install_opener opener N/A response N/A N/A urllib2 urlopen url N/A N/A open N/A %s.tmp N/A N/A self config filename_metrics w m N/A N/A N/A N/A m write N/A N/A response read N/A N/A N/A N/A N/A os unlink N/A N/A self config filename_metrics N/A N/A N/A OSError N/A N/A N/A N/A N/A os rename N/A %s.tmp N/A N/A self config filename_metrics N/A N/A self config filename_metrics N/A load_metrics N/A N/A self N/A N/A N/A N/A N/A N/A open N/A N/A self config filename_metrics r f N/A N/A metrics N/A N/A json load f N/A N/A N/A len metrics N/A N/A N/A metrics N/A 0 N/A 0 . N/A N/A metrics N/A N/A N/A m lstrip . N/A m metrics N/A metrics N/A N/A N/A IOError N/A e N/A N/A N/A MetricsError Can't load metrics file e N/A N/A ValueError N/A e N/A N/A N/A MetricsError Can't parse metrics file e N/A stat_metrics N/A N/A self N/A N/A N/A N/A N/A N/A N/A os stat N/A N/A self config filename_metrics N/A N/A N/A OSError N/A e N/A N/A N/A MetricsError Can't load metrics file e N/A update_data N/A N/A self s_metrics N/A N/A N/A N/A N/A N/A self logger debug loading metrics N/A metrics N/A N/A self load_metrics N/A N/A N/A N/A self logger debug removing outdated metrics N/A N/A N/A s_metrics remove_metrics_not_in metrics N/A N/A N/A N/A self logger debug updating metrics N/A N/A N/A s_metrics update_metrics metrics N/A N/A make_config N/A N/A config N/A N/A N/A N/A hasattr config graphite_url N/A N/A N/A N/A hasattr config graphite_url_server N/A N/A N/A config graphite_url_server N/A config graphite_url N/A N/A N/A hasattr config graphite_url_client N/A N/A N/A config graphite_url_client N/A config graphite_url N/A config N/A get_action_on_rules_match N/A N/A rules subject N/A N/A N/A 
    rules being a a list of tuples, and each tuple having 2 elements, like:
    {'plugin': ['diskspace', 'memory'], 'unit': 'B'},
    action

    the dict is a list of conditions that must match (and). if the value is an iterable, those count as OR
    action can be whatever you want. the actions for all matching rules are yielded.
     N/A N/A match_rules action rules N/A N/A rule_match True N/A N/A tag_k tag_v N/A N/A match_rules items N/A N/A N/A tag_k subject N/A N/A rule_match False N/A N/A N/A isinstance tag_v basestring N/A N/A N/A N/A subject N/A tag_k tag_v N/A N/A rule_match False N/A N/A N/A tag_match False N/A option tag_v N/A N/A N/A N/A subject N/A tag_k option N/A N/A tag_match True N/A N/A tag_match N/A N/A rule_match False N/A N/A rule_match N/A N/A N/A action N/A