Module Expr Str Import alias Import alias Import alias Import alias ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr If CompareIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr Dict If Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body If CompareEq Call NameLoad NameLoad Num body Continue If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num orelse Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str BinOpAdd 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 ListLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad TryExcept body While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num orelse Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr If BoolOpOr CompareNotIn Str NameLoad CompareEq SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr Break Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Call NameLoad NameLoad NameLoad NameLoad Continue Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr Str body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num If CompareEq NameLoad Str body Continue If CompareEq NameLoad Str body For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str If CompareIn NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore BinOpMod Str Call AttributeLoad NameLoad attr Str Str NameLoad If CompareIn NameLoad NameLoad body Assign NameStore Num If CompareGt Call NameLoad NameLoad Num body Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad If NameLoad body Assign NameStore BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num orelse Assign NameStore BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr TupleLoad Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr TupleLoad Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr TupleLoad Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr TupleLoad Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr TupleLoad Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr TupleLoad Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr TupleLoad Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr TupleLoad Str Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list decorator_list
N/A N/A 
Collect stats from Apache HTTPD server using mod_status

#### Dependencies

 * mod_status
 * httplib
 * urlparse

 N/A re N/A httplib N/A urlparse N/A diamond.collector HttpdCollector N/A N/A N/A diamond collector Collector N/A process_config N/A N/A self N/A N/A N/A N/A N/A N/A super HttpdCollector self process_config N/A N/A url N/A self config N/A N/A N/A N/A N/A N/A self config N/A urls append N/A N/A self config N/A url N/A N/A self urls N/A N/A N/A isinstance N/A N/A self config N/A urls basestring N/A N/A N/A N/A self config N/A urls N/A N/A N/A N/A self config N/A urls split , N/A url N/A N/A self config N/A urls N/A N/A N/A N/A len url 0 N/A N/A N/A N/A url N/A N/A parts N/A N/A url split N/A N/A N/A self urls N/A N/A parts N/A 0 N/A parts N/A 1 N/A N/A N/A N/A self urls N/A url 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 HttpdCollector self get_default_config_help N/A N/A N/A config_help update N/A urls N/A N/A Urls to server-status in auto format, comma seperated,  Format 'nickname http://host:port/server-status?auto,  , nickname http://host:port/server-status?auto, etc' 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 HttpdCollector self get_default_config N/A N/A N/A config update N/A path urls httpd N/A localhost http://localhost:8080/server-status?auto N/A config N/A collect N/A N/A self N/A N/A N/A nickname N/A N/A N/A self urls keys N/A N/A url N/A N/A self urls N/A nickname N/A N/A N/A True N/A N/A parts N/A N/A urlparse urlparse url N/A endpoint N/A N/A N/A parts N/A 1 split : N/A N/A N/A len endpoint 1 N/A N/A service_host N/A endpoint N/A 0 N/A service_port N/A int N/A endpoint N/A 1 N/A N/A service_host N/A endpoint N/A 0 N/A service_port 80 N/A connection N/A N/A httplib HTTPConnection service_host service_port N/A url N/A %s?%s N/A N/A parts N/A 2 N/A parts N/A 4 N/A N/A N/A connection request GET url N/A response N/A N/A connection getresponse N/A data N/A N/A response read N/A headers N/A dict N/A N/A response getheaders N/A N/A N/A location headers N/A N/A headers N/A location url N/A N/A N/A N/A connection close N/A N/A url N/A headers N/A location N/A N/A N/A connection close N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A self log error Error retrieving HTTPD stats for host %s:%s, url '%s': %s service_host N/A str service_port url e N/A N/A exp N/A N/A re compile ^([A-Za-z ]+):\s+(.+)$ N/A line N/A N/A data split N/A N/A line N/A N/A m N/A N/A exp match line N/A m N/A N/A k N/A N/A m group 1 N/A v N/A N/A m group 2 N/A N/A k IdleWorkers N/A N/A N/A N/A k Scoreboard N/A N/A sb_kv N/A N/A self _parseScoreboard v N/A N/A N/A N/A self _publish nickname N/A sb_kv N/A 0 N/A sb_kv N/A 1 N/A N/A N/A N/A self _publish nickname k v N/A _publish N/A N/A self nickname key value N/A N/A N/A metrics N/A ReqPerSec BytesPerSec BytesPerReq BusyWorkers Total Accesses IdleWorkers StartingWorkers ReadingWorkers WritingWorkers KeepaliveWorkers DnsWorkers ClosingWorkers LoggingWorkers FinishingWorkers CleanupWorkers N/A metrics_precision N/A ReqPerSec BytesPerSec BytesPerReq N/A N/A key metrics N/A N/A presicion_metric False N/A metric_name N/A %s N/A N/A re sub \s+ key N/A N/A metric_name metrics_precision N/A N/A presicion_metric 1 N/A N/A N/A len nickname 0 N/A N/A metric_name N/A N/A nickname . metric_name N/A presicion_metric N/A N/A metric_value N/A %f N/A float value N/A N/A N/A self publish metric_name metric_value precision 5 N/A N/A metric_value N/A %d N/A float value N/A N/A N/A self publish metric_name metric_value N/A _parseScoreboard N/A N/A self sb N/A N/A N/A ret N/A N/A N/A N/A ret append N/A IdleWorkers N/A N/A sb count _ N/A N/A N/A ret append N/A ReadingWorkers N/A N/A sb count R N/A N/A N/A ret append N/A WritingWorkers N/A N/A sb count W N/A N/A N/A ret append N/A KeepaliveWorkers N/A N/A sb count K N/A N/A N/A ret append N/A DnsWorkers N/A N/A sb count D N/A N/A N/A ret append N/A ClosingWorkers N/A N/A sb count C N/A N/A N/A ret append N/A LoggingWorkers N/A N/A sb count L N/A N/A N/A ret append N/A FinishingWorkers N/A N/A sb count G N/A N/A N/A ret append N/A CleanupWorkers N/A N/A sb count I N/A ret N/A N/A