mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 10:39:53 +00:00
Merge pull request #807 from dipohl/master
Category Tree: Reduce number of categories
This commit is contained in:
commit
059bf0850f
16 changed files with 16 additions and 16 deletions
|
@ -100,7 +100,7 @@ foreach my $func ( keys %config ) {
|
|||
print "graph_title $config{$func}->{title}\n";
|
||||
print "graph_args --base 1000\n";
|
||||
print "graph_vlabel $config{$func}->{vtitle}\n";
|
||||
print "graph_category filesystem\n";
|
||||
print "graph_category disk\n";
|
||||
my $iter = 0;
|
||||
foreach my $param (@{$config{$func}->{params}}) {
|
||||
print "$param.type DERIVE\n";
|
||||
|
|
|
@ -40,7 +40,7 @@ case $1 in
|
|||
cat <<'EOF'
|
||||
graph_title XFS fragmentation
|
||||
graph_vlabel Percent
|
||||
graph_category filesystem
|
||||
graph_category disk
|
||||
EOF
|
||||
cat /etc/mtab | awk '{print $2 " " $3}' | while read LINE
|
||||
do
|
||||
|
|
|
@ -41,7 +41,7 @@ if [ "$1" = "config" ]; then
|
|||
graph_order usedbydataset usedbychildren usedbysnapshots usedbyrefreservation available total quota
|
||||
graph_args --base 1024 -r -l 0 --vertical-label Bytes
|
||||
graph_info This graph shows how is used a zfs filesystems.
|
||||
graph_category filesystem
|
||||
graph_category disk
|
||||
graph_period second
|
||||
usedbydataset.label UsedByDataset
|
||||
usedbydataset.draw AREA
|
||||
|
|
|
@ -38,7 +38,7 @@ if [ "$1" = "config" ]; then
|
|||
echo 'graph_title ZFS ARC Efficiency'
|
||||
echo 'graph_args -l 0'
|
||||
echo 'graph_vlabel %'
|
||||
echo 'graph_category filesystem'
|
||||
echo 'graph_category disk'
|
||||
echo 'graph_info This graph shows the ARC Efficiency'
|
||||
|
||||
/usr/local/bin/zfs-stats -A | awk 'BEGIN { RS = "" ; FS = "\n" } /Efficiency/ {print}' | \
|
||||
|
|
|
@ -38,7 +38,7 @@ if [ "$1" = "config" ]; then
|
|||
echo 'graph_title ZFS ARC Size'
|
||||
echo 'graph_args -l 0'
|
||||
echo 'graph_vlabel Size in MB'
|
||||
echo 'graph_category filesystem'
|
||||
echo 'graph_category disk'
|
||||
echo 'graph_info This graph shows the ARC Size utilization'
|
||||
|
||||
/usr/local/bin/zfs-stats -A | awk 'BEGIN { RS = "" ; FS = "\n" } /^ARC Size/ {print}' | \
|
||||
|
|
|
@ -38,7 +38,7 @@ if [ "$1" = "config" ]; then
|
|||
echo 'graph_title ZFS ARC Cache Hits by Cache List'
|
||||
echo 'graph_args -l 0'
|
||||
echo 'graph_vlabel %'
|
||||
echo 'graph_category filesystem'
|
||||
echo 'graph_category disk'
|
||||
echo 'graph_info This graph shows the ARC cache hits by cache list'
|
||||
|
||||
/usr/local/bin/zfs-stats -A | awk 'BEGIN { RS = "" ; FS = "\n" } /CACHE HITS BY CACHE LIST/ {print}' | \
|
||||
|
|
|
@ -38,7 +38,7 @@ if [ "$1" = "config" ]; then
|
|||
echo 'graph_title ZFS ARC Cache Hits and Misses'
|
||||
echo 'graph_args --upper-limit 100 -l -100'
|
||||
echo 'graph_vlabel %'
|
||||
echo 'graph_category filesystem'
|
||||
echo 'graph_category disk'
|
||||
echo 'graph_info This graph shows the ARC cache hits and misses by data type'
|
||||
|
||||
/usr/local/bin/zfs-stats -A | awk 'BEGIN { RS = "" ; FS = "\n" } /HITS BY DATA TYPE/ {print}' | \
|
||||
|
|
|
@ -38,7 +38,7 @@ if [ "$1" = "config" ]; then
|
|||
echo 'graph_title ZFS DMU prefech stats'
|
||||
echo 'graph_args --upper-limit 100 -l -100'
|
||||
echo 'graph_vlabel %'
|
||||
echo 'graph_category filesystem'
|
||||
echo 'graph_category disk'
|
||||
echo 'graph_info This graph shows the DMU prefech stats'
|
||||
|
||||
/usr/local/bin/zfs-stats -Z | awk '/Hit Ratio/ {sub(/[\t ]*/,"");sub(/:.*/,""); displayname = $0; gsub(/[ .]/,"_",$0); print $0".label "displayname"\n"$0".min 0"}'
|
||||
|
|
|
@ -15,7 +15,7 @@ case $1 in
|
|||
graph_title ZFS ARC efficiency
|
||||
graph_vlabel %
|
||||
graph_scale no
|
||||
graph_category filesystem
|
||||
graph_category disk
|
||||
graph_args -l 0
|
||||
graph_info FreeBSD ZFS ARC Utilisation - Counters
|
||||
graph_period minute
|
||||
|
|
|
@ -38,7 +38,7 @@ graph_title $fsname usage
|
|||
graph_order usedbydataset usedbychildren usedbysnapshots usedbyrefreservation available total quota
|
||||
graph_args --base 1024 -r -l 0 --vertical-label Bytes --upper-limit ${values[6]}
|
||||
graph_info This graph shows how is used a zfs filesystems.
|
||||
graph_category filesystem
|
||||
graph_category disk
|
||||
graph_period second
|
||||
usedbydataset.label UsedByDataset
|
||||
usedbydataset.draw AREA
|
||||
|
|
|
@ -272,7 +272,7 @@ l2efficiency() {
|
|||
|
||||
}
|
||||
|
||||
[ "$1" = "config" ] && echo "graph_category filesystem"
|
||||
[ "$1" = "config" ] && echo "graph_category disk"
|
||||
|
||||
case "$FUNCTION" in
|
||||
efficiency)
|
||||
|
|
|
@ -183,7 +183,7 @@ sub do_config_fs {
|
|||
}
|
||||
print "graph_args --base 1024 --lower-limit 0 --rigid\n";
|
||||
print "graph_vlabel bytes \n";
|
||||
print "graph_category filesystem\n";
|
||||
print "graph_category disk\n";
|
||||
print "graph_order @order\n";
|
||||
|
||||
foreach my $key ( keys %{$filesystems->{$fs}}) {
|
||||
|
|
|
@ -13,7 +13,7 @@ case $1 in
|
|||
graph_title ZFS ARC Counters
|
||||
graph_vlabel per second
|
||||
graph_scale no
|
||||
graph_category filesystem
|
||||
graph_category disk
|
||||
graph_args -l 0
|
||||
graph_info FreeBSD ZFS ARC Utilisation - Counters
|
||||
EOF
|
||||
|
|
|
@ -328,7 +328,7 @@ l2efficiency() {
|
|||
|
||||
}
|
||||
|
||||
[ "$1" = "config" ] && echo "graph_category filesystem"
|
||||
[ "$1" = "config" ] && echo "graph_category disk"
|
||||
|
||||
case "$FUNCTION" in
|
||||
efficiency)
|
||||
|
|
|
@ -4,7 +4,7 @@ if [ "$1" = "config" ]; then
|
|||
echo 'graph_title zpool list'
|
||||
echo 'graph_args --base 1000 -l 0'
|
||||
echo 'graph_vlabel zpool list'
|
||||
echo 'graph_category filesystem'
|
||||
echo 'graph_category disk'
|
||||
echo 'graph_scale no'
|
||||
echo 'graph_info This graph shows zpool list on the server.'
|
||||
zlist=`/sbin/zpool list -H|awk '{print $1}'`
|
||||
|
|
|
@ -17,7 +17,7 @@ if [ "$1" = "config" ]; then
|
|||
echo 'graph_title zpool iostat'
|
||||
echo 'graph_args --base 1000 -l 0'
|
||||
echo 'graph_vlabel write - read KBytes/s'
|
||||
echo 'graph_category filesystem'
|
||||
echo 'graph_category disk'
|
||||
echo 'graph_scale no'
|
||||
echo 'graph_info This graph shows zpool iostat'
|
||||
echo 'graph_order '$zorder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue