diff --git a/plugins/lxc/lxc_ram b/plugins/lxc/lxc_ram index bf6a4134..8160d289 100755 --- a/plugins/lxc/lxc_ram +++ b/plugins/lxc/lxc_ram @@ -12,10 +12,18 @@ lxc_ram - Plugin to monitor LXC memory usage. [lxc_*] user root + [lxc_ram] + env.areastack true + =head1 INTERPRETATION This plugin needs root privilege. +If env.areastack is set to true, all memory usages of containers will be +drawn as stacked area charts. +This option changes graph order, all of 'Mem usage' comes first and then others. +(default: false) + =head1 AUTHOR vajtsz vajtsz@gmail.com @@ -40,6 +48,9 @@ or GPLv3 license, at your option active_guests=$(active_guests) +# configurable: true/false +areastack=${areastack:-false} + if [ "$1" = "autoconf" ]; then lxc_autoconf fi @@ -58,6 +69,12 @@ EOF cat <