3 # Plugin to monitor the rendering throughput of Renderd
 
   8 #       autoconf (optional - used by munin-config)
 
  11 if [ "$1" = "config" ]; then
 
  13         echo 'graph_title Renderd throughput'
 
  14         echo 'graph_args --base 1000 -l 0'
 
  15         echo 'graph_vlabel Metatiles per ${graph_period}'
 
  16         echo 'graph_category renderd'
 
  17         echo 'graph_info Displays the number of metatiles being rendered by renderd per ${graph_period}'
 
  18         echo 'req.label Request Queue'
 
  19         echo 'req.type DERIVE'
 
  22         echo 'req.info Throughput of Metatiles submitted for on the fly rendering'
 
  23         echo 'reqPrio.label Priority request Queue'
 
  24         echo 'reqPrio.type DERIVE'
 
  26         echo 'reqPrio.draw STACK'
 
  27         echo 'reqPrio.info Throughput of Metatiles submitted high priority for on the fly rendering'
 
  28         echo 'dirty.label Dirty Queue'
 
  29         echo 'dirty.type DERIVE'
 
  31         echo 'dirty.draw STACK'
 
  32         echo 'dirty.info Throughput of dirty Metatiles submitted for re-render'
 
  33         echo 'reqBulk.label Bulk request Queue'
 
  34         echo 'reqBulk.type DERIVE'
 
  36         echo 'reqBulk.draw STACK'
 
  37         echo 'reqBulk.info Throughput of Metatiles submitted with background priority'
 
  38         echo 'dropped.label Dropped (x20)'
 
  39         echo 'dropped.type DERIVE'
 
  41         echo 'dropped.draw LINE2'
 
  42         echo 'dropped.info Number of Tiles dropped due to queue overload (x20)'
 
  43         echo 'dropped.cdef dropped,20,/'
 
  47 reqprocessed=`sed -e '/^ReqRendered/!d' -e 's/.*: //' -e q /var/run/renderd/renderd.stats`
 
  48 reqprioprocessed=`sed -e '/^ReqPrioRendered/!d' -e 's/.*: //' -e q /var/run/renderd/renderd.stats`
 
  49 dirtprocessed=`sed -e '/^DirtyRendered/!d' -e 's/.*: //' -e q /var/run/renderd/renderd.stats`
 
  50 reqbulkprocessed=`sed -e '/^ReqBulkRendered/!d' -e 's/.*: //' -e q /var/run/renderd/renderd.stats`
 
  51 dropped=`sed -e '/^DropedRequest/!d' -e 's/.*: //' -e q /var/run/renderd/renderd.stats`
 
  53 echo "req.value " $reqprocessed
 
  54 echo "reqPrio.value " $reqprioprocessed
 
  55 echo "dirty.value " $dirtprocessed
 
  56 echo "reqBulk.value " $reqbulkprocessed
 
  57 echo "dropped.value " $dropped
 
  59 #  LocalWords:  reqprocessed ReqRendered dirtprocessed DirtyRendered req
 
  60 #  LocalWords:  DropedRequest