Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Import alias identifier ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Str body Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd Str Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Str If NameLoad body Assign NameStore Call NameLoad NameLoad Str AugAssignAdd NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return BoolOpOr NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str 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 Str Str Str Str Str Str Str Str Str Str Str NameLoad NameLoad Str NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str TryExcept body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index NameLoad If SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr Str Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Return Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad If SubscriptLoad AttributeLoad NameLoad attr Index Str body For NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore NameLoad If CompareNotIn Str AttributeLoad NameLoad attr body Assign NameStore NameLoad If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Dict Str SubscriptLoad AttributeLoad NameLoad attr Index Str orelse Assign NameStore Dict Str Str If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIn Str SubscriptLoad AttributeLoad NameLoad attr Index Str body For NameStore NameLoad body If CompareNotIn NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Delete SubscriptDel SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str For NameStore NameLoad body Assign NameStore NameLoad If SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str If SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq NameLoad Str body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body If BoolOpAnd CompareNotIn SubscriptLoad NameLoad Index Str NameLoad CompareGt Call NameLoad NameLoad Num body Continue If BoolOpAnd NameLoad Call NameLoad ListComp Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad body Continue For NameStore NameLoad body Assign NameStore Str If UnaryOpNot NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Str If SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str If SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Return Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpAdd NameLoad ListLoad NameLoad If Call NameLoad NameLoad NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad orelse If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad orelse Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A 
Collects data from RabbitMQ through the admin interface

#### Notes
  ** With added support for breaking down queue metrics by vhost, we have
     attempted to keep results generated by existing configurations from
     changing. This means that the old behaviour of clobbering queue metrics
     when a single queue name exists in multiple vhosts still exists if the
     configuration is not updated. If no vhosts block is defined it will also
     keep the metric path as it was historically with no vhost name in it.

        old path => systems.myServer.rabbitmq.queues.myQueue.*
        new path => systems.myServer.rabbitmq.myVhost.queues.myQueue.*

  ** If a [vhosts] section exists but is empty, then no queues will be polled.
  ** To poll all vhosts and all queues, add the following.
  **   [vhosts]
  **   * = *
  **
 N/A diamond.collector N/A re urlparse urljoin urllib quote N/A urllib2 base64 b64encode N/A N/A N/A json N/A N/A N/A ImportError N/A N/A simplejson json RabbitMQClient N/A object N/A N/A 
    Tiny interface into the rabbit http api
     __init__ N/A N/A self host user password timeout scheme N/A 5 http N/A N/A N/A self base_url N/A %s://%s/api/ N/A scheme host N/A N/A self timeout timeout N/A N/A self _authorization N/A Basic  N/A b64encode N/A %s:%s N/A user password N/A do_call N/A N/A self path N/A N/A N/A url N/A urljoin N/A self base_url path N/A req N/A N/A urllib2 Request url N/A N/A N/A req add_header Authorization N/A self _authorization N/A N/A N/A json load N/A N/A urllib2 urlopen req timeout N/A self timeout N/A get_all_vhosts N/A N/A self N/A N/A N/A N/A N/A self do_call vhosts N/A get_vhost_names N/A N/A self N/A N/A N/A N/A N/A i N/A name N/A i N/A N/A self get_all_vhosts N/A get_queues N/A N/A self vhost N/A None N/A N/A path queues N/A vhost N/A N/A vhost N/A quote vhost N/A path N/A /%s vhost N/A queues N/A N/A self do_call path N/A N/A queues N/A N/A get_overview N/A N/A self N/A N/A N/A N/A N/A self do_call overview N/A get_nodes N/A N/A self N/A N/A N/A N/A N/A self do_call nodes N/A get_node N/A N/A self node N/A N/A N/A N/A N/A self do_call N/A nodes/%s node N/A N/A RabbitMQCollector N/A N/A N/A diamond collector Collector N/A get_default_config_help N/A N/A self N/A N/A N/A config_help N/A N/A N/A super RabbitMQCollector self get_default_config_help N/A N/A N/A config_help update N/A host user password replace_dot replace_slash queues vhosts queues_ignored cluster Hostname and port to collect from Username Password A value to replace dot in queue names and vhosts names by A value to replace a slash in queue names and vhosts names by Queues to publish. Leave empty to publish all. A list of vhosts and queues for which we want to collect A list of queues or regexes for queue names not to report on. If this node is part of a cluster, will collect metrics on the cluster health 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 RabbitMQCollector self get_default_config N/A N/A N/A config update N/A path host user password replace_dot replace_slash queues_ignored cluster scheme rabbitmq localhost:55672 guest guest False False False http N/A config N/A collect_health N/A N/A self N/A N/A N/A health_metrics N/A fd_used fd_total mem_used mem_limit sockets_used sockets_total disk_free_limit disk_free proc_used proc_total N/A N/A N/A client N/A RabbitMQClient N/A N/A self config N/A host N/A N/A self config N/A user N/A N/A self config N/A password scheme N/A N/A self config N/A scheme N/A node_name N/A N/A N/A client get_overview N/A node N/A node_data N/A N/A client get_node node_name N/A metric health_metrics N/A N/A N/A N/A self publish N/A N/A health.{0} format metric N/A node_data N/A metric N/A N/A N/A self config N/A cluster N/A N/A N/A N/A self publish cluster.partitions N/A len N/A node_data N/A partitions N/A content N/A N/A client get_nodes N/A N/A N/A self publish cluster.nodes N/A len content N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A self log error Couldnt connect to rabbitmq %s e N/A N/A N/A collect N/A N/A self N/A N/A N/A N/A N/A self collect_health N/A matchers N/A N/A N/A N/A self config N/A queues_ignored N/A N/A reg N/A N/A N/A N/A self config N/A queues_ignored split N/A N/A N/A N/A matchers append N/A N/A re compile reg N/A N/A N/A client N/A RabbitMQClient N/A N/A self config N/A host N/A N/A self config N/A user N/A N/A self config N/A password scheme N/A N/A self config N/A scheme N/A legacy False N/A N/A vhosts N/A self config N/A N/A legacy True N/A N/A queues N/A self config N/A N/A vhost_conf N/A * N/A N/A self config N/A queues N/A N/A vhost_conf N/A * N/A N/A legacy N/A N/A vhost_names N/A N/A client get_vhost_names N/A N/A * N/A N/A self config N/A vhosts N/A N/A vhost vhost_names N/A N/A N/A vhost N/A N/A self config N/A vhosts N/A N/A N/A N/A N/A self config N/A vhosts N/A vhost N/A N/A N/A self config N/A vhosts N/A * N/A N/A N/A N/A self config N/A vhosts N/A * N/A vhost_conf N/A N/A self config N/A vhosts N/A vhost vhost_conf N/A N/A vhost_name vhost N/A N/A N/A self config N/A replace_dot N/A N/A vhost_name N/A N/A vhost_name replace . N/A N/A self config N/A replace_dot N/A N/A N/A self config N/A replace_slash N/A N/A vhost_name N/A N/A vhost_name replace / N/A N/A self config N/A replace_slash N/A queues N/A vhost_conf N/A vhost N/A N/A queues * N/A N/A queues N/A allowed_queues N/A N/A queues split N/A legacy N/A N/A vhost None N/A queue N/A N/A client get_queues vhost N/A N/A N/A N/A N/A queue N/A name allowed_queues N/A N/A len allowed_queues 0 N/A N/A N/A N/A matchers N/A any N/A N/A N/A m match N/A queue N/A name N/A m matchers N/A N/A N/A key queue N/A N/A prefix queues N/A N/A legacy N/A N/A prefix N/A vhosts.%s.%s N/A vhost_name queues N/A queue_name N/A queue N/A name N/A N/A N/A self config N/A replace_dot N/A N/A queue_name N/A N/A queue_name replace . N/A N/A self config N/A replace_dot N/A N/A N/A self config N/A replace_slash N/A N/A queue_name N/A N/A queue_name replace / N/A N/A self config N/A replace_slash N/A name N/A N/A {0}.{1} format prefix queue_name N/A N/A N/A self _publish_metrics name N/A key queue N/A overview N/A N/A client get_overview N/A key overview N/A N/A N/A N/A self _publish_metrics N/A key overview N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A self log error An error occurred collecting from RabbitMQ, %s e N/A N/A N/A _publish_metrics N/A N/A self name prev_keys key data N/A N/A N/A Recursively publish keys N/A value N/A data N/A key N/A keys N/A prev_keys N/A key N/A N/A isinstance value dict N/A N/A new_key value N/A N/A N/A N/A self _publish_metrics name keys new_key value N/A N/A N/A isinstance value N/A float int long N/A N/A joined_keys N/A N/A . join keys N/A name N/A N/A publish_key N/A N/A {0}.{1} format name joined_keys N/A N/A publish_key joined_keys N/A N/A isinstance value bool N/A N/A value N/A int value N/A N/A N/A self publish publish_key value N/A N/A