From: Sebastian Harl Date: Sat, 20 Sep 2008 14:34:39 +0000 (+0200) Subject: collection.cgi: Added support for the memcached-specific types. X-Git-Tag: collectd-4.4.4~21 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=19461d879f7e3078c5c6946461212cbeaabe2095;p=collectd.git collection.cgi: Added support for the memcached-specific types. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- diff --git a/contrib/collection.cgi b/contrib/collection.cgi index b8a08130..753b56e4 100755 --- a/contrib/collection.cgi +++ b/contrib/collection.cgi @@ -1599,6 +1599,89 @@ sub load_graph_definitions 'GPRINT:spam:LAST:%4.1lf Last', 'HRULE:0#000000' ], + memcached_command => ['-v', 'Commands', + 'DEF:avg={file}:value:AVERAGE', + 'DEF:min={file}:value:MIN', + 'DEF:max={file}:value:MAX', + "AREA:max#$HalfBlue", + "AREA:min#$Canvas", + "LINE1:avg#$FullBlue:Commands", + 'GPRINT:min:MIN:%5.1lf%s Min,', + 'GPRINT:avg:AVERAGE:%5.1lf Avg,', + 'GPRINT:max:MAX:%5.1lf Max,', + 'GPRINT:avg:LAST:%5.1lf Last\l' + ], + memcached_connections => ['-v', 'Connections', + 'DEF:avg={file}:value:AVERAGE', + 'DEF:min={file}:value:MIN', + 'DEF:max={file}:value:MAX', + "AREA:max#$HalfBlue", + "AREA:min#$Canvas", + "LINE1:avg#$FullBlue:Connections", + 'GPRINT:min:MIN:%4.1lf Min,', + 'GPRINT:avg:AVERAGE:%4.1lf Avg,', + 'GPRINT:max:MAX:%4.1lf Max,', + 'GPRINT:avg:LAST:%4.1lf Last\l' + ], + memcached_items => ['-v', 'Items', + 'DEF:avg={file}:value:AVERAGE', + 'DEF:min={file}:value:MIN', + 'DEF:max={file}:value:MAX', + "AREA:max#$HalfBlue", + "AREA:min#$Canvas", + "LINE1:avg#$FullBlue:Items", + 'GPRINT:min:MIN:%4.1lf Min,', + 'GPRINT:avg:AVERAGE:%4.1lf Avg,', + 'GPRINT:max:MAX:%4.1lf Max,', + 'GPRINT:avg:LAST:%4.1lf Last\l' + ], + memcached_octets => ['-v', 'Bits/s', + 'DEF:out_min={file}:tx:MIN', + 'DEF:out_avg={file}:tx:AVERAGE', + 'DEF:out_max={file}:tx:MAX', + 'DEF:inc_min={file}:rx:MIN', + 'DEF:inc_avg={file}:rx:AVERAGE', + 'DEF:inc_max={file}:rx:MAX', + 'CDEF:mytime=out_avg,TIME,TIME,IF', + 'CDEF:sample_len_raw=mytime,PREV(mytime),-', + 'CDEF:sample_len=sample_len_raw,UN,0,sample_len_raw,IF', + 'CDEF:out_avg_sample=out_avg,UN,0,out_avg,IF,sample_len,*', + 'CDEF:out_avg_sum=PREV,UN,0,PREV,IF,out_avg_sample,+', + 'CDEF:inc_avg_sample=inc_avg,UN,0,inc_avg,IF,sample_len,*', + 'CDEF:inc_avg_sum=PREV,UN,0,PREV,IF,inc_avg_sample,+', + 'CDEF:out_bit_min=out_min,8,*', + 'CDEF:out_bit_avg=out_avg,8,*', + 'CDEF:out_bit_max=out_max,8,*', + 'CDEF:inc_bit_min=inc_min,8,*', + 'CDEF:inc_bit_avg=inc_avg,8,*', + 'CDEF:inc_bit_max=inc_max,8,*', + 'CDEF:overlap=out_bit_avg,inc_bit_avg,GT,inc_bit_avg,out_bit_avg,IF', + "AREA:out_bit_avg#$HalfGreen", + "AREA:inc_bit_avg#$HalfBlue", + "AREA:overlap#$HalfBlueGreen", + "LINE1:out_bit_avg#$FullGreen:Written", + 'GPRINT:out_bit_avg:AVERAGE:%5.1lf%s Avg,', + 'GPRINT:out_bit_max:MAX:%5.1lf%s Max,', + 'GPRINT:out_bit_avg:LAST:%5.1lf%s Last', + 'GPRINT:out_avg_sum:LAST:(ca. %5.1lf%sB Total)\l', + "LINE1:inc_bit_avg#$FullBlue:Read ", + 'GPRINT:inc_bit_avg:AVERAGE:%5.1lf%s Avg,', + 'GPRINT:inc_bit_max:MAX:%5.1lf%s Max,', + 'GPRINT:inc_bit_avg:LAST:%5.1lf%s Last', + 'GPRINT:inc_avg_sum:LAST:(ca. %5.1lf%sB Total)\l' + ], + memcached_ops => ['-v', 'Ops', + 'DEF:avg={file}:value:AVERAGE', + 'DEF:min={file}:value:MIN', + 'DEF:max={file}:value:MAX', + "AREA:max#$HalfBlue", + "AREA:min#$Canvas", + "LINE1:avg#$FullBlue:Ops", + 'GPRINT:min:MIN:%4.1lf Min,', + 'GPRINT:avg:AVERAGE:%4.1lf Avg,', + 'GPRINT:max:MAX:%4.1lf Max,', + 'GPRINT:avg:LAST:%4.1lf Last\l' + ], memory => ['-b', '1024', '-v', 'Bytes', 'DEF:avg={file}:value:AVERAGE', 'DEF:min={file}:value:MIN',