]> git.openstreetmap.org Git - chef.git/blob - cookbooks/munin/files/default/plugins/renderd_processed
Add a bunch more cookbooks
[chef.git] / cookbooks / munin / files / default / plugins / renderd_processed
1 #!/bin/sh
2 #
3 # Plugin to monitor the rendering throughput of Renderd
4 #
5 # Parameters: 
6 #
7 #       config   (required)
8 #       autoconf (optional - used by munin-config)
9 #
10
11 if [ "$1" = "config" ]; then
12
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'
20         echo 'req.min 0'
21         echo 'req.draw AREA'
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'
25         echo 'reqPrio.min 0'
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'
30         echo 'dirty.min 0'
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'
35         echo 'reqBulk.min 0'
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'
40         echo 'dropped.min 0'
41         echo 'dropped.draw LINE2'
42         echo 'dropped.info Number of Tiles dropped due to queue overload (x20)'
43         echo 'dropped.cdef dropped,20,/'
44         exit 0
45 fi
46
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`
52
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
58
59 #  LocalWords:  reqprocessed ReqRendered dirtprocessed DirtyRendered req
60 #  LocalWords:  DropedRequest