Module Expr Str Import alias Import alias Import alias ImportFrom alias ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore ListLoad Str Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str Str BinOpAdd BinOpAdd Str Str Str BinOpAdd 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 NameLoad ListLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Str TryExcept body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Num handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore TupleLoad Str Str Assign NameStore Dict Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpOr CompareNotEq SubscriptLoad NameLoad Index Num Str CompareIn SubscriptLoad NameLoad Index Num NameLoad body Continue If Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num body Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Str Str If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Dict Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Num orelse Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str body For NameStore NameLoad body For NameStore SubscriptLoad NameLoad Index NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad Str NameLoad Str NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr For NameStore NameLoad body If CompareIn NameLoad NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad SubscriptLoad NameLoad Index NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad SubscriptLoad NameLoad Index NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list decorator_list
N/A N/A 
Collect darner stats ( Modified from memcached collector )



#### Example Configuration

DarnerCollector.conf

```
    enabled = True
    hosts = localhost:22133, app-1@localhost:22133, app-2@localhost:22133, etc
```

TO use a unix socket, set a host string like this

```
    hosts = /path/to/blah.sock, app-1@/path/to/bleh.sock,
```
 N/A diamond.collector N/A socket N/A re diamond.collector str_to_bool DarnerCollector N/A N/A N/A diamond collector Collector N/A N/A GAUGES N/A curr_connections curr_items uptime get_default_config_help N/A N/A self N/A N/A N/A config_help N/A N/A N/A super DarnerCollector self get_default_config_help N/A N/A N/A config_help update N/A publish hosts publish_queues N/A N/A Which rows of 'status' you would like to publish.  Telnet host port' and type stats and hit enter to see the list  of possibilities. Leave unset to publish all. N/A List of hosts, and ports to collect. Set an alias by   prefixing the host:port with alias@ Publish queue stats (defaults to True) 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 DarnerCollector self get_default_config N/A N/A N/A config update N/A path publish_queues hosts darner True N/A localhost:22133 N/A config N/A get_raw_stats N/A N/A self host port N/A N/A N/A data N/A N/A N/A N/A port None N/A N/A sock N/A N/A socket socket N/A socket AF_UNIX N/A socket SOCK_STREAM N/A N/A N/A sock connect host N/A N/A sock N/A N/A socket socket N/A socket AF_INET N/A socket SOCK_STREAM N/A N/A N/A sock connect N/A host N/A int port N/A N/A N/A sock send stats
 N/A data N/A N/A sock recv 4096 N/A N/A N/A N/A socket error N/A N/A N/A N/A N/A self log exception Failed to get stats from %s:%s host port N/A data N/A get_stats N/A N/A self host port N/A N/A N/A ignored N/A time version N/A stats N/A N/A queues N/A N/A data N/A N/A self get_raw_stats host port N/A line N/A N/A data splitlines N/A N/A pieces N/A N/A line split N/A N/A N/A N/A pieces N/A 0 STAT N/A N/A pieces N/A 1 ignored N/A N/A N/A N/A N/A re match ^queue N/A pieces N/A 1 N/A N/A queue_match N/A N/A re match ^queue_(.*)_(items|waiters|open_transactions)$ N/A pieces N/A 1 N/A queue_name N/A N/A N/A N/A queue_match group 1 replace . _ N/A N/A queue_name queues N/A N/A N/A queues N/A queue_name N/A N/A N/A N/A queues N/A queue_name N/A N/A N/A queue_match group 2 N/A int N/A pieces N/A 2 N/A N/A N/A stats N/A N/A pieces N/A 1 N/A int N/A pieces N/A 2 N/A N/A stats queues N/A collect N/A N/A self N/A N/A N/A hosts N/A N/A N/A self config get hosts N/A N/A isinstance hosts basestring N/A N/A hosts N/A hosts N/A host hosts N/A N/A matches N/A N/A re search ((.+)\@)?([^:]+)(:(\d+))? host N/A alias N/A N/A matches group 2 N/A hostname N/A N/A matches group 3 N/A port N/A N/A matches group 5 N/A N/A alias None N/A N/A alias hostname N/A N/A stats queues N/A N/A self get_stats hostname port N/A N/A str_to_bool N/A N/A self config N/A publish_queues N/A N/A queue queues N/A N/A queue_stat N/A queues N/A queue N/A N/A N/A N/A self publish_gauge N/A N/A N/A N/A alias .queues. queue . queue_stat N/A N/A queues N/A queue N/A queue_stat N/A desired N/A N/A N/A self config get publish N/A N/A stats keys N/A stat desired N/A N/A N/A stat stats N/A N/A N/A stat N/A self GAUGES N/A N/A N/A N/A self publish_gauge N/A N/A alias . stat N/A stats N/A stat N/A N/A N/A N/A self publish_counter N/A N/A alias . stat N/A stats N/A stat N/A N/A N/A N/A N/A self log error No such key '%s' available, issue 'stats' for a full list stat N/A N/A