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