From: Sebastian Harl Date: Sat, 5 Jul 2008 10:06:25 +0000 (+0200) Subject: contrib/collection.cgi: Added basic support for "postgresql" statistics. X-Git-Tag: collectd-4.5.0~100 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2c8470d917b2f0a17326ee1336081dcffbd6a347;p=collectd.git contrib/collection.cgi: Added basic support for "postgresql" statistics. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- diff --git a/contrib/collection.cgi b/contrib/collection.cgi index b8a08130..cab7543f 100755 --- a/contrib/collection.cgi +++ b/contrib/collection.cgi @@ -1953,6 +1953,66 @@ sub load_graph_definitions 'GPRINT:ping_avg:AVERAGE:%4.1lf ms Avg,', 'GPRINT:ping_max:MAX:%4.1lf ms Max,', 'GPRINT:ping_avg:LAST:%4.1lf ms Last'], + pg_blks => ['DEF:pg_blks_avg={file}:value:AVERAGE', + 'DEF:pg_blks_min={file}:value:MIN', + 'DEF:pg_blks_max={file}:value:MAX', + "AREA:pg_blks_max#$HalfBlue", + "AREA:pg_blks_min#$Canvas", + "LINE1:pg_blks_avg#$FullBlue:Blocks", + 'GPRINT:pg_blks_min:MIN:%4.1lf%s Min,', + 'GPRINT:pg_blks_avg:AVERAGE:%4.1lf%s Avg,', + 'GPRINT:pg_blks_max:MAX:%4.1lf%s Max,', + 'GPRINT:pg_blks_avg:LAST:%4.1lf%s Last'], + pg_n_tup_c => ['DEF:pg_n_tup_avg={file}:value:AVERAGE', + 'DEF:pg_n_tup_min={file}:value:MIN', + 'DEF:pg_n_tup_max={file}:value:MAX', + "AREA:pg_n_tup_max#$HalfBlue", + "AREA:pg_n_tup_min#$Canvas", + "LINE1:pg_n_tup_avg#$FullBlue:Tuples", + 'GPRINT:pg_n_tup_min:MIN:%4.1lf%s Min,', + 'GPRINT:pg_n_tup_avg:AVERAGE:%4.1lf%s Avg,', + 'GPRINT:pg_n_tup_max:MAX:%4.1lf%s Max,', + 'GPRINT:pg_n_tup_avg:LAST:%4.1lf%s Last'], + pg_n_tup_g => ['DEF:pg_n_tup_avg={file}:value:AVERAGE', + 'DEF:pg_n_tup_min={file}:value:MIN', + 'DEF:pg_n_tup_max={file}:value:MAX', + "AREA:pg_n_tup_max#$HalfBlue", + "AREA:pg_n_tup_min#$Canvas", + "LINE1:pg_n_tup_avg#$FullBlue:Tuples", + 'GPRINT:pg_n_tup_min:MIN:%4.1lf%s Min,', + 'GPRINT:pg_n_tup_avg:AVERAGE:%4.1lf%s Avg,', + 'GPRINT:pg_n_tup_max:MAX:%4.1lf%s Max,', + 'GPRINT:pg_n_tup_avg:LAST:%4.1lf%s Last'], + pg_numbackends => ['DEF:pg_numbackends_avg={file}:value:AVERAGE', + 'DEF:pg_numbackends_min={file}:value:MIN', + 'DEF:pg_numbackends_max={file}:value:MAX', + "AREA:pg_numbackends_max#$HalfBlue", + "AREA:pg_numbackends_min#$Canvas", + "LINE1:pg_numbackends_avg#$FullBlue:Backends", + 'GPRINT:pg_numbackends_min:MIN:%4.1lf%s Min,', + 'GPRINT:pg_numbackends_avg:AVERAGE:%4.1lf%s Avg,', + 'GPRINT:pg_numbackends_max:MAX:%4.1lf%s Max,', + 'GPRINT:pg_numbackends_avg:LAST:%4.1lf%s Last'], + pg_scan => ['DEF:pg_scan_avg={file}:value:AVERAGE', + 'DEF:pg_scan_min={file}:value:MIN', + 'DEF:pg_scan_max={file}:value:MAX', + "AREA:pg_scan_max#$HalfBlue", + "AREA:pg_scan_min#$Canvas", + "LINE1:pg_scan_avg#$FullBlue:Scans", + 'GPRINT:pg_scan_min:MIN:%4.1lf%s Min,', + 'GPRINT:pg_scan_avg:AVERAGE:%4.1lf%s Avg,', + 'GPRINT:pg_scan_max:MAX:%4.1lf%s Max,', + 'GPRINT:pg_scan_avg:LAST:%4.1lf%s Last'], + pg_xact => ['DEF:pg_xact_avg={file}:value:AVERAGE', + 'DEF:pg_xact_min={file}:value:MIN', + 'DEF:pg_xact_max={file}:value:MAX', + "AREA:pg_xact_max#$HalfBlue", + "AREA:pg_xact_min#$Canvas", + "LINE1:pg_xact_avg#$FullBlue:Transactions", + 'GPRINT:pg_xact_min:MIN:%4.1lf%s Min,', + 'GPRINT:pg_xact_avg:AVERAGE:%4.1lf%s Avg,', + 'GPRINT:pg_xact_max:MAX:%4.1lf%s Max,', + 'GPRINT:pg_xact_avg:LAST:%4.1lf%s Last'], power => ['-v', 'Watt', 'DEF:avg={file}:value:AVERAGE', 'DEF:min={file}:value:MIN',