3 # Plugin to monitor queue length of tiles submited for rendering in renderd
8 # autoconf (optional - used by munin-config)
11 if [ "$1" = "config" ]; then
13 echo 'graph_title Renderd queue length'
14 echo 'graph_args --base 1000 -l 0'
15 echo 'graph_vlabel metatiles'
16 echo 'graph_category renderd'
17 echo 'req.label Request Queue'
20 echo 'reqPrio.label Priority request Queue'
21 echo 'reqPrio.type GAUGE'
22 echo 'reqPrio.max 100'
23 echo 'dirty.label Dirty Queue'
24 echo 'dirty.type GAUGE'
26 echo 'reqBulk.label Bulk request Queue'
27 echo 'reqBulk.type GAUGE'
28 echo 'reqBulk.max 100'
32 reqlength=`sed -e '/^ReqQueueLength/!d' -e 's/.*: //' -e q /var/run/renderd/renderd.stats`
33 reqpriolength=`sed -e '/^ReqPrioQueueLength/!d' -e 's/.*: //' -e q /var/run/renderd/renderd.stats`
34 reqbulklength=`sed -e '/^ReqBulkQueueLength/!d' -e 's/.*: //' -e q /var/run/renderd/renderd.stats`
35 dirtlength=`sed -e '/^DirtQueueLength/!d' -e 's/.*: //' -e q /var/run/renderd/renderd.stats`
37 echo "req.value " $reqlength
38 echo "reqPrio.value " $reqpriolength
39 echo "dirty.value " $dirtlength
40 echo "reqBulk.value " $reqbulklength