The mem plugin collects memory metrics, defined as follows. For a more complete
For a more complete explanation of the difference between *used* and
explanation of the difference between `used` and `actual_used` RAM, see
*actual_used* RAM, see [Linux ate my ram](http://www.linuxatemyram.com/).
[Linux ate my ram](http://www.linuxatemyram.com/).
### Configuration:
-**total**: total physical memory available
```toml
-**available**: the actual amount of available memory that can be given instantly
# Read metrics about memory usage
to processes that request more memory in bytes; In linux kernel 3.14+, this
[[inputs.mem]]
is available natively in /proc/meminfo. In other platforms, this is calculated by
# no configuration
summing different memory values depending on the platform
```
(e.g. free + buffers + cached on Linux).
It is supposed to be used to monitor actual memory usage in a cross platform fashion.
### Metrics:
-**available_percent**: Percent of memory available, `available / total * 100`
-**used**: memory used, calculated differently depending on the platform and
- mem
designed for informational purposes only.
- fields:
-**free**: memory not being used at all (zeroed) that is readily available; note
- active (int)
that this doesn't reflect the actual memory available (use 'available' instead).
- available (int)
-**used_percent**: the percentage usage calculated as `used / total * 100`
- buffered (int)
- cached (int)
## Measurements:
- free (int)
#### Raw Memory measurements:
- inactive (int)
- slab (int)
Meta:
- total (int)
- units: bytes
- used (int)
- tags: `nil`
- available_percent (float)
- used_percent (float)
Measurement names:
- mem_total
### Example Output:
- mem_available
```
- mem_used
mem cached=7809495040i,inactive=6348988416i,total=20855394304i,available=11378946048i,buffered=927199232i,active=11292905472i,slab=1351340032i,used_percent=45.43883523785713,available_percent=54.56116476214287,used=9476448256i,free=1715331072i 1511894782000000000