mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Plugin lxc: draw stacked RAM graphs by default
Previously "ram_display_stacked" defaulted to "false" (non-stacked graphs). The new default should be suitable for most situations.
This commit is contained in:
parent
ab6f4e3c6e
commit
9af96d2c60
1 changed files with 8 additions and 8 deletions
|
@ -12,9 +12,9 @@ lxc-multigraph - Plugin to monitor LXC containers (v2.0)
|
|||
[lxc-multigraph]
|
||||
user root
|
||||
|
||||
# memory usage of containers drawn as
|
||||
# stacked area charts (changes graph
|
||||
# order) -- defaults to false
|
||||
# The memory usage of containers are by default drawn as stacked area
|
||||
# charts. Alternatively a non-stacked graph with lines can be configured.
|
||||
# Default: true
|
||||
#env.ram_display_stacked true
|
||||
|
||||
# lxc container path, default below
|
||||
|
@ -84,7 +84,7 @@ or GPLv3 license or later, at your option
|
|||
. $MUNIN_LIBDIR/plugins/plugin.sh
|
||||
|
||||
lxcpath=${lxcpath:-/var/lib/lxc}
|
||||
ram_display_stacked=${ram_display_stacked:-false}
|
||||
ram_display_stacked=${ram_display_stacked:-true}
|
||||
|
||||
|
||||
# --- FUNCTIONS
|
||||
|
@ -309,10 +309,10 @@ EOF
|
|||
|
||||
for n in $active_guests
|
||||
do
|
||||
if [ "$ram_display_stacked" = "true" ]; then
|
||||
draw_style="AREASTACK"
|
||||
else
|
||||
if [ "$ram_display_stacked" != "true" ]; then
|
||||
draw_style="LINE1"
|
||||
else
|
||||
draw_style="AREASTACK"
|
||||
fi
|
||||
|
||||
cat <<EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue