1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 18:38:30 +00:00

rename option to 'env.areastack'

This commit is contained in:
Ken-ichi Mito 2016-07-31 21:42:32 +09:00
parent 1c917e64b0
commit 58e5b2f32c

View file

@ -13,16 +13,16 @@ lxc_ram - Plugin to monitor LXC memory usage.
user root user root
[lxc_ram] [lxc_ram]
env.stack_usage true env.areastack true
=head1 INTERPRETATION =head1 INTERPRETATION
This plugin needs root privilege. This plugin needs root privilege.
If env.stack_usage is set to true, all memory usages of containers will be If env.areastack is set to true, all memory usages of containers will be
drawn as stacked area charts. drawn as stacked area charts.
This option changes graph order, all of 'Mem usage' comes first and then others. This option changes graph order, all of 'Mem usage' comes first and then others.
(default: empty) (default: false)
=head1 AUTHOR =head1 AUTHOR
@ -70,7 +70,7 @@ if [ "$1" = "config" ]; then
echo 'graph_vlabel byte' echo 'graph_vlabel byte'
echo 'graph_category memory' echo 'graph_category memory'
if [ "$stack_usage" = "true" ]; then if [ "$areastack" = "true" ]; then
for guest_name in $guest_names; do for guest_name in $guest_names; do
guest="$(clean_fieldname $guest_name)" guest="$(clean_fieldname $guest_name)"
@ -84,7 +84,7 @@ if [ "$1" = "config" ]; then
do do
guest="$(clean_fieldname $guest_name)" guest="$(clean_fieldname $guest_name)"
if [ "$stack_usage" != "true" ]; then if [ "$areastack" != "true" ]; then
echo 'mem_usage_'$guest'.label '$guest_name': Mem usage' echo 'mem_usage_'$guest'.label '$guest_name': Mem usage'
echo 'mem_usage_'$guest'.type GAUGE' echo 'mem_usage_'$guest'.type GAUGE'
fi fi