banshee est en développement actif : les collecteurs vont encore changer, et une version que vous publiez demandera sans doute des ajustements. Pour un usage stable, attendez la version 1.0.0.

Linux

banshee/linux-collection/linux/ssh/

memory

Memory of a Linux by SSH: total, used and available as the kernel counts it (MemAvailable).

  • linux
  • ssh
  • memory
  • alpine
  • debian
  • fedora

par banshee1 installation2 versions

Memory of a Linux, by SSH

Returns the physical memory, the memory available as the kernel counts it, the used memory and its share. Swap is the linux/ssh/swap collector.

How it works

The collector runs cat /proc/meminfo and reads MemTotal and MemAvailable.

  • MemAvailable is the kernel's estimate of what can be given to a program without swapping: free memory plus the caches and buffers that can be dropped. Used memory is MemTotal − MemAvailable: caches do not count as used.
  • Portable: /proc/meminfo is written by the kernel the same way on Alpine, Debian and Fedora. Nothing is written on the target.
  • A kernel older than 3.14, without MemAvailable, stops the collector misconfigured rather than guess.

Prerequisites

  • an SSH account for monitoring, without write rights;
  • the fingerprint of the server's host key, set in protocol:ssh:fingerprint (not needed when the Security settings trust the first SSH fingerprint presented).

Outputs

OutputUnitMeaning
totalMiBphysical memory
usedMiBmemory in use, caches excluded
availableMiBmemory available to programs
used-percent%share of memory in use

Watches

WatchKindDefaultsChecked
used-percent Memory saturatedabove, on used-percentwarning 90, critical 95, for 3 runsyes
available Little memory availablebelow, on availablecritical 512no

Limits

  • In a container without lxcfs, /proc/meminfo shows the host's memory, not the container's limit.