]> git.openstreetmap.org Git - chef.git/blob - cookbooks/munin/templates/default/munin.conf.erb
f204de2a0346c07045732d028a0ab61b90935569
[chef.git] / cookbooks / munin / templates / default / munin.conf.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 # Configure alert targets
4 contact.admins.command mail -s "Munin Notification" admins@openstreetmap.org
5 contact.null.command cat > /dev/null
6
7 # Send alerts to the admins by default
8 contacts admins
9
10 # Ignore uncontactable hosts for twelve hours
11 unknown_limit 144
12 <% @clients.sort { |a,b| a[:hostname] <=> b[:hostname] }.each do |client| -%>
13
14 # Configure monitoring for <%= client[:fqdn] %>
15 [<%= client[:hostname] %>.openstreetmap]
16 <% if Time.now - Time.at(client[:ohai_time]) > @expiry_time -%>
17     update no
18 <% end -%>
19 <% if client[:networking][:roles][:external][:zone] == "ucl" -%>
20     address <%= client.internal_ipaddress %>
21 <% elsif client[:networking][:roles][:external][:zone] == "ic" -%>
22     address <%= client.internal_ipaddress || client.external_ipaddress %>
23 <% elsif client.external_ipaddress -%>
24     address <%= client.external_ipaddress %>
25 <% end -%>
26     use_node_name yes
27 <% if client[:munin][:plugins] -%>
28 <% client[:munin][:plugins].keys.sort.each do |plugin| -%>
29 <% client[:munin][:plugins][plugin].keys.sort.each do |value| -%>
30 <% if client[:munin][:plugins][plugin][value].kind_of?(Hash) -%>
31 <% if client[:munin][:plugins][plugin][value][:graph] -%>
32     <%= plugin %>.<%= value %>.graph <%= client[:munin][:plugins][plugin][value][:graph] %>
33 <% end -%>
34 <% if client[:munin][:plugins][plugin][value][:warning] -%>
35     <%= plugin %>.<%= value %>.warning <%= client[:munin][:plugins][plugin][value][:warning] %>
36 <% end -%>
37 <% if client[:munin][:plugins][plugin][value][:critical] -%>
38     <%= plugin %>.<%= value %>.critical <%= client[:munin][:plugins][plugin][value][:critical] %>
39 <% end -%>
40 <% else -%>
41     <%= plugin %>.<%= value %> <%= client[:munin][:plugins][plugin][value] %>
42 <% end -%>
43 <% end -%>
44 <% end -%>
45 <% end -%>
46 <% if client[:munin][:graphs] -%>
47 <% client[:munin][:graphs].keys.sort.each do |graph| -%>
48 <% if client[:munin][:graphs][graph][:title] -%>
49     <%= graph %>.graph_title <%= client[:munin][:graphs][graph][:title] %>
50 <% end -%>
51 <% if client[:munin][:graphs][graph][:vlabel] -%>
52     <%= graph %>.graph_vlabel <%= client[:munin][:graphs][graph][:vlabel] %>
53 <% end -%>
54 <% if client[:munin][:graphs][graph][:category] -%>
55     <%= graph %>.graph_category <%= client[:munin][:graphs][graph][:category] %>
56 <% end -%>
57 <% client[:munin][:graphs][graph][:values].keys.sort.each do |value| -%>
58 <% if client[:munin][:graphs][graph][:values][value][:sum] -%>
59     <%= graph %>.<%= value %>.sum <%= client[:munin][:graphs][graph][:values][value][:sum].join(" ") %>
60 <% end -%>
61 <% if client[:munin][:graphs][graph][:values][value][:label] -%>
62     <%= graph %>.<%= value %>.label <%= client[:munin][:graphs][graph][:values][value][:label] %>
63 <% end -%>
64 <% end -%>
65 <% end -%>
66 <% end -%>
67 <% end -%>
68
69 # Configure compound graphs for www.openstreetmap.org
70 [www.openstreetmap]
71     update no
72     apache_accesses.graph_title Apache accesses
73     apache_accesses.graph_vlabel accesses / ${graph_period}
74     apache_accesses.graph_category apache
75     apache_accesses.accesses80.sum <%= Chef::Munin.expand "%%.openstreetmap:apache_accesses.accesses80", @frontends %>
76     apache_accesses.accesses80.label port 80
77     apache_volume.graph_title Apache volume
78     apache_volume.graph_vlabel bytes per ${graph_period}
79     apache_volume.graph_category apache
80     apache_volume.volume80.sum <%= Chef::Munin.expand "%%.openstreetmap:apache_volume.volume80", @frontends %>
81     apache_volume.volume80.label port 80
82     if_eth0.graph_title eth0 traffic
83     if_eth0.graph_vlabel bits in (-) / out (+) per ${graph_period}
84     if_eth0.graph_category network
85     if_eth0.down.sum <%= Chef::Munin.expand "%%.openstreetmap:if_eth0.down", @frontends %>
86     if_eth0.down.label received
87     if_eth0.down.cdef down,8,*
88     if_eth0.up.sum <%= Chef::Munin.expand "%%.openstreetmap:if_eth0.up", @frontends %>
89     if_eth0.up.label sent
90     if_eth0.up.cdef up,8,*
91     if_eth1.graph_title eth1 traffic
92     if_eth1.graph_vlabel bits in (-) / out (+) per ${graph_period}
93     if_eth1.graph_category network
94     if_eth1.down.sum <%= Chef::Munin.expand "%%.openstreetmap:if_eth1.down", @frontends %>
95     if_eth1.down.label received
96     if_eth1.down.cdef down,8,*
97     if_eth1.up.sum <%= Chef::Munin.expand "%%.openstreetmap:if_eth1.up", @frontends %>
98     if_eth1.up.label sent
99     if_eth1.up.cdef up,8,*
100     api_calls_www.graph_title Active requests
101     api_calls_www.graph_vlabel Number of requests
102     api_calls_www.graph_category api
103     api_calls_www.web.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_%%.web", @frontends %>
104     api_calls_www.web.label Web site traffic
105     api_calls_www.upload.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_%%.upload", @frontends %>
106     api_calls_www.upload.label Changeset diff uploads
107     api_calls_www.other.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_%%.other", @frontends %>
108     api_calls_www.other.label Other API calls
109     api_calls_www.amf.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_%%.amf", @frontends %>
110     api_calls_www.amf.label AMF API calls
111     api_calls_www.history.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_%%.history", @frontends %>
112     api_calls_www.history.label Element history fetches
113     api_calls_www.full.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_%%.full", @frontends %>
114     api_calls_www.full.label Full element fetches
115     api_calls_www.map.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_%%.map", @frontends %>
116     api_calls_www.map.label Map API calls
117     api_calls_www.trkpts.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_%%.trkpts", @frontends %>
118     api_calls_www.trkpts.label GPX trackpoints calls
119     api_calls_num.graph_title Requests processed
120     api_calls_num.graph_vlabel Number of requests per minute
121     api_calls_num.graph_category api
122     api_calls_num.web.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_num.web", @frontends %>
123     api_calls_num.web.label Web site traffic
124     api_calls_num.upload.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_num.upload", @frontends %>
125     api_calls_num.upload.label Changeset diff uploads
126     api_calls_num.other.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_num.other", @frontends %>
127     api_calls_num.other.label Other API calls
128     api_calls_num.amf.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_num.amf", @frontends %>
129     api_calls_num.amf.label AMF API calls
130     api_calls_num.history.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_num.history", @frontends %>
131     api_calls_num.history.label Element history fetches
132     api_calls_num.full.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_num.full", @frontends %>
133     api_calls_num.full.label Full element fetches
134     api_calls_num.map.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_num.map", @frontends %>
135     api_calls_num.map.label Map API calls
136     api_calls_num.trkpts.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_num.trkpts", @frontends %>
137     api_calls_num.trkpts.label GPX trackpoints calls
138     api_waits_www.graph_title Wait times for active requests
139     api_waits_www.graph_vlabel Average time of requests
140     api_waits_www.graph_category api
141     api_waits_www.web.sum <%= Chef::Munin.expand "%%.openstreetmap:api_waits_%%.web", @frontends %>
142     api_waits_www.web.label Web site traffic
143     api_waits_www.web.cdef web,2,/
144     api_waits_www.upload.sum <%= Chef::Munin.expand "%%.openstreetmap:api_waits_%%.upload", @frontends %>
145     api_waits_www.upload.label Changeset diff uploads
146     api_waits_www.upload.cdef upload,2,/
147     api_waits_www.other.sum <%= Chef::Munin.expand "%%.openstreetmap:api_waits_%%.other", @frontends %>
148     api_waits_www.other.label Other API calls
149     api_waits_www.other.cdef other,2,/
150     api_waits_www.amf.sum <%= Chef::Munin.expand "%%.openstreetmap:api_waits_%%.amf", @frontends %>
151     api_waits_www.amf.label AMF API calls
152     api_waits_www.amf.cdef amf,2,/
153     api_waits_www.history.sum <%= Chef::Munin.expand "%%.openstreetmap:api_waits_%%.history", @frontends %>
154     api_waits_www.history.label Element history fetches
155     api_waits_www.history.cdef history,2,/
156     api_waits_www.full.sum <%= Chef::Munin.expand "%%.openstreetmap:api_waits_%%.full", @frontends %>
157     api_waits_www.full.label Full element fetches
158     api_waits_www.full.cdef full,2,/
159     api_waits_www.map.sum <%= Chef::Munin.expand "%%.openstreetmap:api_waits_%%.map", @frontends %>
160     api_waits_www.map.label Map API calls
161     api_waits_www.map.cdef map,2,/
162     api_waits_www.trkpts.sum <%= Chef::Munin.expand "%%.openstreetmap:api_waits_%%.trkpts", @frontends %>
163     api_waits_www.trkpts.label GPX trackpoints calls
164     api_waits_www.trkpts.cdef trkpts,2,/
165     memcached_multi_bytes.graph_title Network Traffic
166     memcached_multi_bytes.graph_vlabel bits in (-) / out (+)
167     memcached_multi_bytes.graph_category memcached
168     memcached_multi_bytes.bytes_read.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_multi_bytes.bytes_read", @backends %>
169     memcached_multi_bytes.bytes_read.label Network Traffic coming in (-)
170     memcached_multi_bytes.bytes_read.cdef bytes_read,8,*
171     memcached_multi_bytes.bytes_written.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_multi_bytes.bytes_written", @backends %>
172     memcached_multi_bytes.bytes_written.label Traffic in (-) / out (+)
173     memcached_multi_bytes.bytes_written.cdef bytes_written,8,*
174     memcached_commands.graph_title Commands
175     memcached_commands.graph_vlabel Commands per ${graph_period}
176     memcached_commands.graph_category memcached
177     memcached_commands.cmd_get.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_commands.cmd_get", @backends %>
178     memcached_commands.cmd_get.label Gets
179     memcached_commands.cmd_set.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_commands.cmd_set", @backends %>
180     memcached_commands.cmd_set.label Sets
181     memcached_commands.get_hits.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_commands.get_hits", @backends %>
182     memcached_commands.get_hits.label Get Hits
183     memcached_commands.get_misses.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_commands.get_misses", @backends %>
184     memcached_commands.get_misses.label Get Misses
185     memcached_commands.delete_hits.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_commands.delete_hits", @backends %>
186     memcached_commands.delete_hits.label Delete Hits
187     memcached_commands.delete_misses.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_commands.delete_misses", @backends %>
188     memcached_commands.delete_misses.label Delete Misses
189     memcached_commands.incr_hits.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_commands.incr_hits", @backends %>
190     memcached_commands.incr_hits.label Increment Hits
191     memcached_commands.incr_misses.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_commands.incr_misses", @backends %>
192     memcached_commands.incr_misses.label Increment Misses
193     memcached_commands.decr_hits.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_commands.decr_hits", @backends %>
194     memcached_commands.decr_hits.label Decrement Hits
195     memcached_commands.decr_misses.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_commands.decr_misses", @backends %>
196     memcached_commands.decr_misses.label Decrement Misses
197     memcached_multi_conns.graph_title Connections
198     memcached_multi_conns.graph_vlabel Connections per ${graph_period}
199     memcached_multi_conns.graph_category memcached
200     memcached_multi_conns.curr_conns.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_multi_conns.curr_conns", @backends %>
201     memcached_multi_conns.curr_conns.label Current Connections
202     memcached_multi_conns.max_conns.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_multi_conns.max_conns", @backends %>
203     memcached_multi_conns.max_conns.label Max Connections
204     memcached_multi_conns.avg_conns.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_multi_conns.avg_conns", @backends %>
205     memcached_multi_conns.avg_conns.label Avg Connections
206     memcached_evictions.graph_title Evictions
207     memcached_evictions.graph_vlabel Evictions per ${graph_period}
208     memcached_evictions.graph_category memcached
209     memcached_evictions.evictions.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_evictions.evictions", @backends %>
210     memcached_evictions.evictions.label Evictions
211     memcached_evictions.evicted_nonzero.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_evictions.evicted_nonzero", @backends %>
212     memcached_evictions.evicted_nonzero.label Evictions prior to Expire
213     memcached_evictions.reclaimed.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_evictions.reclaimed", @backends %>
214     memcached_evictions.reclaimed.label Reclaimed Items
215     memcached_items.graph_title Items
216     memcached_items.graph_vlabel Items in Memcached
217     memcached_items.graph_category memcached
218     memcached_items.curr_items.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_items.curr_items", @backends %>
219     memcached_items.curr_items.label Current Items
220     memcached_items.total_items.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_items.total_items", @backends %>
221     memcached_items.total_items.label New Items
222     memcached_memory.graph_title Memory Usage
223     memcached_memory.graph_vlabel Bytes Used
224     memcached_memory.graph_category memcached
225     memcached_memory.limit_maxbytes.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_memory.limit_maxbytes", @backends %>
226     memcached_memory.limit_maxbytes.label Maximum Bytes Allocated
227     memcached_memory.bytes.sum <%= Chef::Munin.expand "%%.openstreetmap:memcached_memory.bytes", @backends %>
228     memcached_memory.bytes.label Current Bytes Used
229
230 # Configure compound graphs for tile.openstreetmap.org
231 [tile.openstreetmap]
232     update no
233     network_in.graph_title Inbound network traffic
234     network_in.graph_vlabel bits in per ${graph_period}
235     network_in.graph_category network
236     network_in.graph_order <%= Chef::Munin.expand "%%name%%=%%name%%.openstreetmap:if_%%interface%%.down", @tilecaches %>
237     network_in.graph_total total
238 <% @tilecaches.each do |tc| -%>
239     network_in.<%= tc[:name] %>.label <%= tc[:name] %>
240     network_in.<%= tc[:name] %>.cdef <%= tc[:name] %>,8,*
241     network_in.<%= tc[:name] %>.draw AREASTACK
242 <% end -%>
243     network_out.graph_title Outbound network traffic
244     network_out.graph_vlabel bits out per ${graph_period}
245     network_out.graph_category network
246     network_out.graph_order <%= Chef::Munin.expand "%%name%%=%%name%%.openstreetmap:if_%%interface%%.up", @tilecaches %>
247     network_out.graph_total total
248 <% @tilecaches.each do |tc| -%>
249     network_out.<%= tc[:name] %>.label <%= tc[:name] %>
250     network_out.<%= tc[:name] %>.cdef <%= tc[:name] %>,8,*
251     network_out.<%= tc[:name] %>.draw AREASTACK
252 <% end -%>
253     squid_delay_pools.graph_title IPs being delayed
254     squid_delay_pools.graph_args --base 1000 -l 0
255     squid_delay_pools.graph_vlabel IPs
256     squid_delay_pools.graph_order squid_delay1
257     squid_delay_pools.graph_category squid
258     squid_delay_pools.squid_delay1.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:squid_delay_pools.squid_delay1", @tilecaches %>
259     squid_delay_pools.squid_delay1.label IPs
260     squid_delay_pools.squid_delay1.min 0
261     squid_delay_pools.squid_delay1.draw AREA
262     squid_requests.graph_title Squid client requests
263     squid_requests.graph_args --base 1000 -l 0
264     squid_requests.graph_vlabel requests / ${graph_period}
265     squid_requests.graph_order hits errors requests
266     squid_requests.graph_total total
267     squid_requests.graph_category squid
268     squid_requests.hits.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:squid_requests.hits", @tilecaches %>
269     squid_requests.hits.label hits
270     squid_requests.hits.draw AREA
271     squid_requests.errors.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:squid_requests.errors", @tilecaches %>
272     squid_requests.errors.label errors
273     squid_requests.errors.draw STACK
274     squid_requests.requests.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:squid_requests.requests", @tilecaches %>
275     squid_requests.requests.label misses
276     squid_requests.requests.draw STACK
277     squid_traffic.graph_title Squid traffic status
278     squid_traffic.graph_args --base 1000
279     squid_traffic.graph_vlabel bits per ${graph_period}
280     squid_traffic.graph_order kbytes_in kbytes_out hit_kbytes_out
281     squid_traffic.graph_category squid
282     squid_traffic.kbytes_in.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:squid_traffic.kbytes_in", @tilecaches %>
283     squid_traffic.kbytes_in.label received
284     squid_traffic.kbytes_in.cdef kbytes_in,8096,*
285     squid_traffic.kbytes_out.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:squid_traffic.kbytes_out", @tilecaches %>
286     squid_traffic.kbytes_out.label sent
287     squid_traffic.kbytes_out.cdef kbytes_out,8096,*
288     squid_traffic.hit_kbytes_out.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:squid_traffic.hit_kbytes_out", @tilecaches %>
289     squid_traffic.hit_kbytes_out.label from cache
290     squid_traffic.hit_kbytes_out.cdef hit_kbytes_out,8096,*
291     squid_times_http.graph_title Squid Http Service Times
292     squid_times_http.graph_category squid
293     squid_times_http.graph_args --lower-limit 0
294     squid_times_http.graph_vlabel median reponse times (s)
295     squid_times_http.graph_order <%= Chef::Munin.expand "%%name%%=%%name%%.openstreetmap:squid_times.mean_http", @tilecaches %>
296 <% @tilecaches.each do |tc| -%>
297     squid_times_http.<%= tc[:name] %>.label <%= tc[:name] %>
298 <% end -%>
299     squid_times_cmis.graph_title Squid Cache Miss Service Times
300     squid_times_cmis.graph_category squid
301     squid_times_cmis.graph_args --lower-limit 0
302     squid_times_cmis.graph_vlabel median reponse times (s)
303     squid_times_cmis.graph_order <%= Chef::Munin.expand "%%name%%=%%name%%.openstreetmap:squid_times.mean_cmis", @tilecaches %>
304 <% @tilecaches.each do |tc| -%>
305     squid_times_cmis.<%= tc[:name] %>.label <%= tc[:name] %>
306 <% end -%>
307     squid_times_chits.graph_title Squid Cache Hit Service Times
308     squid_times_chits.graph_category squid
309     squid_times_chits.graph_args --lower-limit 0
310     squid_times_chits.graph_vlabel median reponse times (s)
311     squid_times_chits.graph_order <%= Chef::Munin.expand "%%name%%=%%name%%.openstreetmap:squid_times.mean_chits", @tilecaches %>
312 <% @tilecaches.each do |tc| -%>
313     squid_times_chits.<%= tc[:name] %>.label <%= tc[:name] %>
314 <% end -%>
315     squid_times_nhits.graph_title Squid Cache Near Hit Service Times
316     squid_times_nhits.graph_category squid
317     squid_times_nhits.graph_args --lower-limit 0
318     squid_times_nhits.graph_vlabel median reponse times (s)
319     squid_times_nhits.graph_order <%= Chef::Munin.expand "%%name%%=%%name%%.openstreetmap:squid_times.mean_nhits", @tilecaches %>
320 <% @tilecaches.each do |tc| -%>
321     squid_times_nhits.<%= tc[:name] %>.label <%= tc[:name] %>
322 <% end -%>
323     squid_times_nmr.graph_title Squid Cache Not Modified Service Times
324     squid_times_nmr.graph_category squid
325     squid_times_nmr.graph_args --lower-limit 0
326     squid_times_nmr.graph_vlabel median reponse times (s)
327     squid_times_nmr.graph_order <%= Chef::Munin.expand "%%name%%=%%name%%.openstreetmap:squid_times.mean_nmr", @tilecaches %>
328 <% @tilecaches.each do |tc| -%>
329     squid_times_nmr.<%= tc[:name] %>.label <%= tc[:name] %>
330 <% end -%>
331     squid_times_dnsl.graph_title Squid Cache DNS Lookup Service Times
332     squid_times_dnsl.graph_category squid
333     squid_times_dnsl.graph_args --lower-limit 0
334     squid_times_dnsl.graph_vlabel median reponse times (s)
335     squid_times_dnsl.graph_order <%= Chef::Munin.expand "%%name%%=%%name%%.openstreetmap:squid_times.mean_dnsl", @tilecaches %>
336 <% @tilecaches.each do |tc| -%>
337     squid_times_dnsl.<%= tc[:name] %>.label <%= tc[:name] %>
338 <% end -%>
339
340 # Configure compound graphs for render.openstreetmap.org
341 [render.openstreetmap]
342     update no
343     apache_accesses.graph_title Apache accesses
344     apache_accesses.graph_vlabel accesses / ${graph_period}
345     apache_accesses.graph_category apache
346     apache_accesses.graph_order <%= Chef::Munin.expand "%%name%%=%%name%%.openstreetmap:apache_accesses.accesses80", @renderers %>
347     apache_accesses.graph_total total
348 <% @renderers.each do |rs| -%>
349     apache_accesses.<%= rs[:name] %>.label <%= rs[:name] %>
350     apache_accesses.<%= rs[:name] %>.draw AREASTACK
351 <% end -%>
352     apache_volume.graph_title Apache volume
353     apache_volume.graph_vlabel bytes per ${graph_period}
354     apache_volume.graph_category apache
355     apache_volume.graph_order <%= Chef::Munin.expand "%%name%%=%%name%%.openstreetmap:apache_volume.volume80", @renderers %>
356     apache_volume.graph_total total
357 <% @renderers.each do |rs| -%>
358     apache_volume.<%= rs[:name] %>.label <%= rs[:name] %>
359     apache_volume.<%= rs[:name] %>.draw AREASTACK
360 <% end -%>
361     network_in.graph_title Inbound network traffic
362     network_in.graph_vlabel bits in per ${graph_period}
363     network_in.graph_category network
364     network_in.graph_order <%= Chef::Munin.expand "%%name%%=%%name%%.openstreetmap:if_%%interface%%.down", @renderers %>
365     network_in.graph_total total
366 <% @renderers.each do |rs| -%>
367     network_in.<%= rs[:name] %>.label <%= rs[:name] %>
368     network_in.<%= rs[:name] %>.cdef <%= rs[:name] %>,8,*
369     network_in.<%= rs[:name] %>.draw AREASTACK
370 <% end -%>
371     network_out.graph_title Outbound network traffic
372     network_out.graph_vlabel bits out per ${graph_period}
373     network_out.graph_category network
374     network_out.graph_order <%= Chef::Munin.expand "%%name%%=%%name%%.openstreetmap:if_%%interface%%.up", @renderers %>
375     network_out.graph_total total
376 <% @renderers.each do |rs| -%>
377     network_out.<%= rs[:name] %>.label <%= rs[:name] %>
378     network_out.<%= rs[:name] %>.cdef <%= rs[:name] %>,8,*
379     network_out.<%= rs[:name] %>.draw AREASTACK
380 <% end -%>
381     mod_tile_fresh.graph_title freshness of served tiles
382     mod_tile_fresh.graph_args --base 1000 -l 0
383     mod_tile_fresh.graph_vlabel tiles per ${graph_period}
384     mod_tile_fresh.graph_order fresh freshrender old oldrender outdated outdatedrender
385     mod_tile_fresh.graph_category mod_tile
386     mod_tile_fresh.fresh.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_fresh.fresh", @renderers %>
387     mod_tile_fresh.fresh.label Fresh from disk
388     mod_tile_fresh.fresh.draw AREA
389     mod_tile_fresh.freshrender.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_fresh.freshrender", @renderers %>
390     mod_tile_fresh.freshrender.label Freshly rendered
391     mod_tile_fresh.freshrender.draw STACK
392     mod_tile_fresh.old.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_fresh.old", @renderers %>
393     mod_tile_fresh.old.label Old from disk
394     mod_tile_fresh.old.draw STACK
395     mod_tile_fresh.oldrender.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_fresh.oldrender", @renderers %>
396     mod_tile_fresh.oldrender.label Old tile, attempted render
397     mod_tile_fresh.oldrender.draw STACK
398     mod_tile_fresh.outdated.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_fresh.outdated", @renderers %>
399     mod_tile_fresh.outdated.label Outdated from disk
400     mod_tile_fresh.outdated.draw STACK
401     mod_tile_fresh.outdatedrender.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_fresh.outdatedrender", @renderers %>
402     mod_tile_fresh.outdatedrender.label Outdated tile, attempted render
403     mod_tile_fresh.outdatedrender.draw STACK
404     mod_tile_response.graph_title mod_tile HTTP response codes
405     mod_tile_response.graph_args --base 1000 -l 0
406     mod_tile_response.graph_vlabel responses per ${graph_period}
407     mod_tile_response.graph_order response200 response304 response404 response500
408     mod_tile_response.graph_category mod_tile
409     mod_tile_response.response200.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_response.response200", @renderers %>
410     mod_tile_response.response200.label 200 OK
411     mod_tile_response.response200.draw AREA
412     mod_tile_response.response304.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_response.response304", @renderers %>
413     mod_tile_response.response304.label 304 Not Modified
414     mod_tile_response.response304.draw STACK
415     mod_tile_response.response404.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_response.response404", @renderers %>
416     mod_tile_response.response404.label 404 Not Found
417     mod_tile_response.response404.draw STACK
418     mod_tile_response.response500.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_response.response500", @renderers %>
419     mod_tile_response.response500.label 500 Internal Error
420     mod_tile_response.response500.draw STACK
421     mod_tile_zoom.graph_title mod_tile responses by zoom layer
422     mod_tile_zoom.graph_args --base 1000 -l 0
423     mod_tile_zoom.graph_vlabel responses per ${graph_period}
424     mod_tile_zoom.graph_order z1 z2 z3 z4 z5 z6
425     mod_tile_zoom.graph_category mod_tile
426     mod_tile_zoom.z1.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_zoom.z1", @renderers %>
427     mod_tile_zoom.z1.label z1-8
428     mod_tile_zoom.z1.draw AREA
429     mod_tile_zoom.z2.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_zoom.z2", @renderers %>
430     mod_tile_zoom.z2.label z9-12
431     mod_tile_zoom.z2.draw STACK
432     mod_tile_zoom.z3.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_zoom.z3", @renderers %>
433     mod_tile_zoom.z3.label z13-14
434     mod_tile_zoom.z3.draw STACK
435     mod_tile_zoom.z4.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_zoom.z4", @renderers %>
436     mod_tile_zoom.z4.label z15-16
437     mod_tile_zoom.z4.draw STACK
438     mod_tile_zoom.z5.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_zoom.z5", @renderers %>
439     mod_tile_zoom.z5.label z17-18
440     mod_tile_zoom.z5.draw STACK
441     mod_tile_zoom.z6.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_zoom.z6", @renderers %>
442     mod_tile_zoom.z6.label z19-20
443     mod_tile_zoom.z6.draw STACK
444     renderd_queue.graph_title Renderd queue length
445     renderd_queue.graph_args --base 1000 -l 0
446     renderd_queue.graph_vlabel metatiles
447     renderd_queue.graph_order reqPrio req reqLow dirty reqBulk
448     renderd_queue.graph_category renderd
449     renderd_queue.reqPrio.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_queue.reqPrio", @renderers %>
450     renderd_queue.reqPrio.label Priority request Queue
451     renderd_queue.reqPrio.type GAUGE
452     renderd_queue.req.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_queue.req", @renderers %>
453     renderd_queue.req.label Request Queue
454     renderd_queue.req.type GAUGE
455     renderd_queue.reqLow.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_queue.reqLow", @renderers %>
456     renderd_queue.reqLow.label Low priority request Queue
457     renderd_queue.reqLow.type GAUGE
458     renderd_queue.dirty.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_queue.dirty", @renderers %>
459     renderd_queue.dirty.label Dirty Queue
460     renderd_queue.dirty.type GAUGE
461     renderd_queue.reqBulk.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_queue.reqBulk", @renderers %>
462     renderd_queue.reqBulk.label Bulk request Queue
463     renderd_queue.reqBulk.type GAUGE
464     renderd_processed.graph_title Renderd throughput
465     renderd_processed.graph_args --base 1000 -l 0
466     renderd_processed.graph_vlabel Metatiles per ${graph_period}
467     renderd_processed.graph_order req reqLow reqPrio dirty reqBulk dropped
468     renderd_processed.graph_category renderd
469     renderd_processed.graph_info Displays the number of metatiles being rendered by renderd per ${graph_period}
470     renderd_processed.req.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_processed.req", @renderers %>
471     renderd_processed.req.label Request Queue
472     renderd_processed.req.draw AREA
473     renderd_processed.req.info Throughput of Metatiles submitted for on the fly rendering
474     renderd_processed.reqLow.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_processed.reqLow", @renderers %>
475     renderd_processed.reqLow.label Low priority request Queue
476     renderd_processed.reqLow.draw STACK
477     renderd_processed.reqLow.info Throughput of Metatiles submitted low priority for on the fly rendering
478     renderd_processed.reqPrio.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_processed.reqPrio", @renderers %>
479     renderd_processed.reqPrio.label Priority request Queue
480     renderd_processed.reqPrio.draw STACK
481     renderd_processed.reqPrio.info Throughput of Metatiles submitted high priority for on the fly rendering
482     renderd_processed.dirty.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_processed.dirty", @renderers %>
483     renderd_processed.dirty.label Dirty Queue
484     renderd_processed.dirty.draw STACK
485     renderd_processed.dirty.info Throughput of dirty Metatiles submitted for re-render
486     renderd_processed.reqBulk.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_processed.reqBulk", @renderers %>
487     renderd_processed.reqBulk.label Bulk request Queue
488     renderd_processed.reqBulk.draw STACK
489     renderd_processed.reqBulk.info Throughput of Metatiles submitted with background priority
490     renderd_processed.dropped.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_processed.dropped", @renderers %>
491     renderd_processed.dropped.label Dropped (x20)
492     renderd_processed.dropped.draw LINE2
493     renderd_processed.dropped.info Number of Tiles dropped due to queue overload (x20)
494     renderd_processed.dropped.cdef dropped,20,/
495     renderd_zoom.graph_title Renderd throughput by zoom
496     renderd_zoom.graph_args --base 1000 -l 0
497     renderd_zoom.graph_vlabel Metatiles per ${graph_period}
498     renderd_zoom.graph_order z1 z2 z3 z4 z5 z6
499     renderd_zoom.graph_category renderd
500     renderd_zoom.graph_info Displays the number of metatiles being rendered by renderd per ${graph_period}
501     renderd_zoom.z1.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_zoom.z1", @renderers %>
502     renderd_zoom.z1.label zoom z0 - z8
503     renderd_zoom.z1.draw AREA
504     renderd_zoom.z1.info Throughput of Metatiles for z0 - z8
505     renderd_zoom.z2.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_zoom.z2", @renderers %>
506     renderd_zoom.z2.label zoom z9 - z12
507     renderd_zoom.z2.draw STACK
508     renderd_zoom.z2.info Throughput of Metatiles for z9 - z12
509     renderd_zoom.z3.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_zoom.z3", @renderers %>
510     renderd_zoom.z3.label zoom z13 - z14
511     renderd_zoom.z3.draw STACK
512     renderd_zoom.z3.info Throughput of Metatiles for z13 - z14
513     renderd_zoom.z4.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_zoom.z4", @renderers %>
514     renderd_zoom.z4.label zoom z15 - z16
515     renderd_zoom.z4.draw STACK
516     renderd_zoom.z4.info Throughput of Metatiles for z15 - z16
517     renderd_zoom.z5.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_zoom.z5", @renderers %>
518     renderd_zoom.z5.label zoom z17 - z18
519     renderd_zoom.z5.draw STACK
520     renderd_zoom.z5.info Throughput of Metatiles for z17 - z18
521     renderd_zoom.z6.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_zoom.z6", @renderers %>
522     renderd_zoom.z6.label zoom z19 - z20
523     renderd_zoom.z6.draw STACK
524     renderd_zoom.z6.info Throughput of Metatiles for z19 - z20
525     renderd_queue_time.graph_title Renderd time spent by queue
526     renderd_queue_time.graph_args --base 1000 -l 0
527     renderd_queue_time.graph_vlabel metatiles
528     renderd_queue_time.graph_order reqPrio req reqLow dirty reqBulk
529     renderd_queue_time.graph_category renderd
530     renderd_queue_time.reqPrio.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_queue_time.reqPrio", @renderers %>
531     renderd_queue_time.reqPrio.label Priority request queue
532     renderd_queue_time.reqPrio.cdef reqPrio,1000,/
533     renderd_queue_time.reqPrio.draw AREA
534     renderd_queue_time.reqPrio.info Time for priority request queue
535     renderd_queue_time.req.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_queue_time.req", @renderers %>
536     renderd_queue_time.req.label Request queue
537     renderd_queue_time.req.cdef req,1000,/
538     renderd_queue_time.req.draw STACK
539     renderd_queue_time.req.info Time for Request queue
540     renderd_queue_time.reqLow.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_queue_time.reqLow", @renderers %>
541     renderd_queue_time.reqLow.label Low priority request queue
542     renderd_queue_time.reqLow.cdef reqLow,1000,/
543     renderd_queue_time.reqLow.draw STACK
544     renderd_queue_time.reqLow.info Time for low priority request queue
545     renderd_queue_time.dirty.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_queue_time.dirty", @renderers %>
546     renderd_queue_time.dirty.label Dirty queue
547     renderd_queue_time.dirty.cdef dirty,1000,/
548     renderd_queue_time.dirty.draw STACK
549     renderd_queue_time.dirty.info Time for dirty queue
550     renderd_queue_time.reqBulk.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_queue_time.reqBulk", @renderers %>
551     renderd_queue_time.reqBulk.label Bulk queue
552     renderd_queue_time.reqBulk.cdef reqBulk,1000,/
553     renderd_queue_time.reqBulk.draw STACK
554     renderd_queue_time.reqBulk.info Time for bulk queue
555     renderd_zoom_time.graph_title Renderd time spent by zoom
556     renderd_zoom_time.graph_args --base 1000 -l 0
557     renderd_zoom_time.graph_vlabel time spent per ${graph_period}
558     renderd_zoom_time.graph_order zoomtime1 zoomtime2 zoomtime3 zoomtime4 zoomtime5 zoomtime6
559     renderd_zoom_time.graph_category renderd
560     renderd_zoom_time.graph_info Displays the amount of time renderd has spent rendering tiles of a given zoom per ${graph_period}
561     renderd_zoom_time.zoomtime1.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_zoom_time.zoomtime1", @renderers %>
562     renderd_zoom_time.zoomtime1.label zoom z0 - z8
563     renderd_zoom_time.zoomtime1.cdef zoomtime1,1000,/
564     renderd_zoom_time.zoomtime1.draw AREA
565     renderd_zoom_time.zoomtime1.info Time for Metatiles z0 - z8
566     renderd_zoom_time.zoomtime2.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_zoom_time.zoomtime2", @renderers %>
567     renderd_zoom_time.zoomtime2.label zoom z9 - z12
568     renderd_zoom_time.zoomtime2.cdef zoomtime2,1000,/
569     renderd_zoom_time.zoomtime2.draw STACK
570     renderd_zoom_time.zoomtime2.info Time for Metatiles for z9 - z12
571     renderd_zoom_time.zoomtime3.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_zoom_time.zoomtime3", @renderers %>
572     renderd_zoom_time.zoomtime3.label zoom z13 - z14
573     renderd_zoom_time.zoomtime3.cdef zoomtime3,1000,/
574     renderd_zoom_time.zoomtime3.draw STACK
575     renderd_zoom_time.zoomtime3.info Time for Metatiles for z13 - z14
576     renderd_zoom_time.zoomtime4.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_zoom_time.zoomtime4", @renderers %>
577     renderd_zoom_time.zoomtime4.label zoom z15 - z16
578     renderd_zoom_time.zoomtime4.cdef zoomtime4,1000,/
579     renderd_zoom_time.zoomtime4.draw STACK
580     renderd_zoom_time.zoomtime4.info Time for Metatiles for z15 - z16
581     renderd_zoom_time.zoomtime5.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_zoom_time.zoomtime5", @renderers %>
582     renderd_zoom_time.zoomtime5.label zoom z17 - z18
583     renderd_zoom_time.zoomtime5.cdef zoomtime5,1000,/
584     renderd_zoom_time.zoomtime5.draw STACK
585     renderd_zoom_time.zoomtime5.info Time for Metatiles for z17 - z18
586     renderd_zoom_time.zoomtime6.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:renderd_zoom_time.zoomtime6", @renderers %>
587     renderd_zoom_time.zoomtime6.label zoom z19 - z20
588     renderd_zoom_time.zoomtime6.cdef zoomtime6,1000,/
589     renderd_zoom_time.zoomtime6.draw STACK
590     renderd_zoom_time.zoomtime6.info Time for Metatiles for z19 - z20