Module Expr Str Import alias Import alias Import alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict 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 Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body TryExcept body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad If BoolOpAnd CompareNotIn NameLoad NameLoad CompareNotIn Str AttributeLoad NameLoad attr body Continue For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str Break handlers ExceptHandler type NameLoad body Continue Return NameLoad orelse If UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Str Break Return NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
This class collects data on memory utilization

Note that MemFree may report no memory free. This may not actually be the case,
as memory is allocated to Buffers and Cache as well. See
[this link](http://www.linuxatemyram.com/) for more details.

#### Dependencies

* /proc/meminfo or psutil

 N/A diamond.collector N/A diamond.convertor N/A os N/A N/A N/A psutil N/A N/A N/A ImportError N/A N/A psutil None N/A _KEY_MAPPING N/A MemTotal MemFree Buffers Cached Active Dirty Inactive Shmem SwapTotal SwapFree SwapCached VmallocTotal VmallocUsed VmallocChunk Committed_AS MemoryCollector N/A N/A N/A diamond collector Collector N/A N/A PROC /proc/meminfo get_default_config_help N/A N/A self N/A N/A N/A config_help N/A N/A N/A super MemoryCollector self get_default_config_help N/A N/A N/A config_help update N/A detailed Set to True to Collect all the nodes 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 MemoryCollector self get_default_config N/A N/A N/A config update N/A path memory N/A config N/A collect N/A N/A self N/A N/A N/A 
        Collect memory stats
         N/A N/A N/A os access N/A self PROC N/A os R_OK N/A N/A file N/A open N/A self PROC N/A data N/A N/A file read N/A N/A N/A file close N/A line N/A N/A data splitlines N/A N/A N/A N/A N/A name value units N/A N/A line split N/A name N/A N/A name rstrip : N/A value N/A int value N/A N/A N/A name _KEY_MAPPING N/A detailed N/A self config N/A N/A N/A unit N/A N/A self config N/A byte_unit N/A N/A value N/A N/A N/A N/A diamond convertor binary convert value value oldUnit units newUnit unit N/A N/A N/A self publish name value metric_type GAUGE N/A N/A N/A N/A ValueError N/A N/A N/A True N/A N/A N/A psutil N/A N/A N/A N/A N/A self log error Unable to import psutil N/A N/A N/A N/A self log error No memory metrics retrieved N/A None N/A phymem_usage N/A N/A psutil phymem_usage N/A virtmem_usage N/A N/A psutil virtmem_usage N/A units B N/A unit N/A N/A self config N/A byte_unit N/A N/A value N/A N/A N/A N/A diamond convertor binary convert value N/A phymem_usage total oldUnit units newUnit unit N/A N/A N/A self publish MemTotal value metric_type GAUGE N/A value N/A N/A N/A N/A diamond convertor binary convert value N/A phymem_usage free oldUnit units newUnit unit N/A N/A N/A self publish MemFree value metric_type GAUGE N/A value N/A N/A N/A N/A diamond convertor binary convert value N/A virtmem_usage total oldUnit units newUnit unit N/A N/A N/A self publish SwapTotal value metric_type GAUGE N/A value N/A N/A N/A N/A diamond convertor binary convert value N/A virtmem_usage free oldUnit units newUnit unit N/A N/A N/A self publish SwapFree value metric_type GAUGE N/A N/A True N/A None N/A N/A