1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 09:57:09 +00:00

Reduce number of categories, use more generic terms

This commit is contained in:
Gabriele Pohl 2014-09-07 02:03:45 +02:00
parent e00bd6b8a0
commit 6ffd50195c
27 changed files with 31 additions and 30 deletions

View file

@ -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 --upper-limit ${values[6]}
graph_info This graph shows how is used a zfs filesystems.
graph_category Zfs
graph_category filesystem
graph_period second
usedbydataset.label UsedByDataset
usedbydataset.draw AREA

View file

@ -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 ZFS'
echo 'graph_category filesystem'
echo 'graph_info This graph shows the ARC Efficiency'
/usr/local/bin/zfs-stats -A | awk 'BEGIN { RS = "" ; FS = "\n" } /Efficiency/ {print}' | \
@ -51,4 +51,4 @@ fi
# /usr/local/bin/zfs-stats and processes its output
/usr/local/bin/zfs-stats -A | awk 'BEGIN { RS = "" ; FS = "\n" } /Efficiency/ {print}' | \
awk '/^\t.*%/ {sub("\t","");sub(/:/,""); gsub(/[ .]/,"_",$0); sub(/%/,""); sub(/_/,".",$2); print $1".value "$2}'
awk '/^\t.*%/ {sub("\t","");sub(/:/,""); gsub(/[ .]/,"_",$0); sub(/%/,""); sub(/_/,".",$2); print $1".value "$2}'

View file

@ -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 ZFS'
echo 'graph_category filesystem'
echo 'graph_info This graph shows the ARC Size utilization'
/usr/local/bin/zfs-stats -A | awk 'BEGIN { RS = "" ; FS = "\n" } /^ARC Size/ {print}' | \

View file

@ -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 ZFS'
echo 'graph_category filesystem'
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}' | \

View file

@ -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 ZFS'
echo 'graph_category filesystem'
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}' | \
@ -55,4 +55,4 @@ fi
/usr/local/bin/zfs-stats -A | awk 'BEGIN { RS = "" ; FS = "\n" } /HITS BY DATA TYPE/ {print}' | \
awk '/^\t.*%/ {sub(/[\t ]*/,"");sub(/:/,""); gsub(/[ .]/,"_",$0); sub(/%/,""); sub(/_/,".",$2); print "hits_"$1".value "$2}'
/usr/local/bin/zfs-stats -A | awk 'BEGIN { RS = "" ; FS = "\n" } /MISSES BY DATA TYPE/ {print}' | \
awk '/^\t.*%/ {sub(/[\t ]*/,"");sub(/:/,""); gsub(/[ .]/,"_",$0); sub(/%/,""); sub(/_/,".",$2); print "misses_"$1".value -"$2}'
awk '/^\t.*%/ {sub(/[\t ]*/,"");sub(/:/,""); gsub(/[ .]/,"_",$0); sub(/%/,""); sub(/_/,".",$2); print "misses_"$1".value -"$2}'

View file

@ -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 ZFS'
echo 'graph_category filesystem'
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"}'
@ -51,4 +51,4 @@ fi
# /usr/local/bin/zfs-stats and processes its output
/usr/local/bin/zfs-stats -Z | awk '/Hit Ratio/ {sub(/[\t ]*/,"");sub(/:/,""); gsub(/[ .]/,"_",$0); sub(/%/,""); sub(/_/,".",$2); print $1".value "$2}'
/usr/local/bin/zfs-stats -Z | awk '/Miss Ratio/ {sub(/[\t ]*/,"");sub(/:/,""); gsub(/[ .]/,"_",$0); sub(/%/,""); sub(/_/,".",$2); print $1".value -"$2}'
/usr/local/bin/zfs-stats -Z | awk '/Miss Ratio/ {sub(/[\t ]*/,"");sub(/:/,""); gsub(/[ .]/,"_",$0); sub(/%/,""); sub(/_/,".",$2); print $1".value -"$2}'

View file

@ -272,7 +272,7 @@ l2efficiency() {
}
[ "$1" = "config" ] && echo "graph_category zfs"
[ "$1" = "config" ] && echo "graph_category filesystem"
case "$FUNCTION" in
efficiency)

View file

@ -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 zfs\n";
print "graph_category filesystem\n";
print "graph_order @order\n";
foreach my $key ( keys %{$filesystems->{$fs}}) {

View file

@ -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 zfs'
echo 'graph_category filesystem'
echo 'graph_scale no'
echo 'graph_info This graph shows zpool list on the server.'
zlist=`/sbin/zpool list -H|awk '{print $1}'`

View file

@ -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 zfs'
echo 'graph_category filesystem'
echo 'graph_scale no'
echo 'graph_info This graph shows zpool iostat'
echo 'graph_order '$zorder