Module Expr Str Import alias ImportFrom alias alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Import alias identifier 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 BinOpAdd Str Str BinOpAdd BinOpAdd Str Str Str Str Str Str Str BinOpAdd 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 NameLoad NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore Call NameLoad ListLoad Str Str keyword NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str BinOpSub Call NameLoad Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore TupleLoad Str Str body For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad If SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore BinOpMod Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str For NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str body Assign NameStore ListLoad Str Str SubscriptLoad AttributeLoad NameLoad attr Index Str Str NameLoad Str SubscriptLoad AttributeLoad NameLoad attr Index Str Str NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr Str body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign SubscriptStore NameLoad Index Call AttributeLoad SubscriptLoad NameLoad Index Num attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore BinOpMod Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad SubscriptLoad NameLoad Index Str decorator_list decorator_list
N/A N/A 
Openstack swift collector.

#### Dependencies

 * swift-dispersion-report commandline tool (for dispersion report)
   if using this, make sure swift.conf and dispersion.conf are readable by
   diamond also get an idea of the runtime of a swift-dispersion-report call
   and make sure the collect interval is high enough to avoid contention.
 * swift commandline tool (for container_metrics)

both of these should come installed with swift
 N/A diamond.collector subprocess Popen PIPE N/A N/A N/A json N/A N/A N/A ImportError N/A N/A simplejson json OpenstackSwiftCollector 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 OpenstackSwiftCollector self get_default_config_help N/A N/A N/A config_help update N/A enable_dispersion_report enable_container_metrics auth_url account user password containers N/A gather swift-dispersion-report  metrics (default False) N/A N/A gather containers metrics  (# objects, bytes used,  x_timestamp. default True) authentication url (for enable_container_metrics) swift auth account (for enable_container_metrics) swift auth user (for enable_container_metrics) swift auth password (for enable_container_metrics) N/A containers on which to count number of objects,  space separated list (for enable_container_metrics) 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 OpenstackSwiftCollector self get_default_config N/A N/A N/A config update N/A path enable_dispersion_report enable_container_metrics interval openstackswift False True 1200 N/A config N/A collect N/A N/A self N/A N/A N/A N/A N/A self config N/A enable_dispersion_report N/A N/A p N/A Popen N/A swift-dispersion-report -j stdout PIPE stderr PIPE N/A N/A stdout stderr N/A N/A p communicate N/A N/A N/A self publish dispersion.errors N/A N/A len N/A N/A stderr split 1 N/A data N/A N/A json loads stdout N/A t N/A object container N/A N/A N/A k v N/A N/A N/A data N/A t items N/A N/A N/A N/A self publish N/A dispersion.%s.%s N/A t k v N/A N/A N/A self config N/A enable_container_metrics N/A N/A account N/A %s:%s N/A N/A N/A self config N/A account N/A N/A self config N/A user N/A container N/A N/A N/A N/A self config N/A containers split , N/A N/A cmd N/A swift -A N/A N/A self config N/A auth_url -U account -K N/A N/A self config N/A password stat container N/A p N/A Popen cmd stdout PIPE stderr PIPE N/A N/A stdout stderr N/A N/A p communicate N/A stats N/A N/A line N/A N/A stdout split N/A N/A line N/A N/A line N/A N/A line split : 2 N/A N/A stats N/A N/A N/A N/A line N/A 0 strip N/A N/A N/A line N/A 1 strip N/A key N/A container_metrics.%s.%s N/A N/A N/A self config N/A account container N/A N/A N/A self publish N/A %s.objects key N/A stats N/A Objects N/A N/A N/A self publish N/A %s.bytes key N/A stats N/A Bytes N/A N/A N/A self publish N/A %s.x_timestamp key N/A stats N/A X-Timestamp N/A N/A