]> git.openstreetmap.org Git - chef.git/blob - cookbooks/munin/templates/default/munin.conf.erb
Disable munin email alerting
[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 # Ignore uncontactable hosts for twelve hours
18 unknown_limit 144
19 <% @clients.sort { |a,b| a.name <=> b.name }.each do |client| -%>
20
21 # Configure monitoring for <%= client.name %>
22 [<%= client.name %>]
23 <% if Time.now - Time.at(client[:ohai_time]) > @expiry_time -%>
24     update no
25 <% end -%>
26 <% if client[:networking][:roles][:external][:zone] == "ucl" -%>
27     address <%= client.internal_ipaddress || client.external_ipaddress %>
28 <% elsif client[:networking][:roles][:external][:zone] == "ams" -%>
29     address <%= client.internal_ipaddress || client.external_ipaddress %>
30 <% elsif client[:networking][:roles][:external][:zone] == "bm" -%>
31     address <%= client.internal_ipaddress || client.external_ipaddress %>
32 <% elsif client.external_ipaddress -%>
33     address <%= client.external_ipaddress %>
34 <% end -%>
35     use_node_name yes
36 <% if client[:munin][:plugins] -%>
37 <% client[:munin][:plugins].keys.sort.each do |plugin| -%>
38 <% client[:munin][:plugins][plugin].keys.sort.each do |value| -%>
39 <% if client[:munin][:plugins][plugin][value].kind_of?(Hash) -%>
40 <% if client[:munin][:plugins][plugin][value][:graph] -%>
41     <%= plugin %>.<%= value %>.graph <%= client[:munin][:plugins][plugin][value][:graph] %>
42 <% end -%>
43 <% if client[:munin][:plugins][plugin][value][:draw] -%>
44     <%= plugin %>.<%= value %>.draw <%= client[:munin][:plugins][plugin][value][:draw] %>
45 <% end -%>
46 <% if client[:munin][:plugins][plugin][value][:label] -%>
47     <%= plugin %>.<%= value %>.label <%= client[:munin][:plugins][plugin][value][:label] %>
48 <% end -%>
49 <% if client[:munin][:plugins][plugin][value][:warning] -%>
50     <%= plugin %>.<%= value %>.warning <%= client[:munin][:plugins][plugin][value][:warning] %>
51 <% end -%>
52 <% if client[:munin][:plugins][plugin][value][:critical] -%>
53     <%= plugin %>.<%= value %>.critical <%= client[:munin][:plugins][plugin][value][:critical] %>
54 <% end -%>
55 <% else -%>
56     <%= plugin %>.<%= value %> <%= client[:munin][:plugins][plugin][value] %>
57 <% end -%>
58 <% end -%>
59 <% end -%>
60 <% end -%>
61 <% if client[:munin][:graphs] -%>
62 <% client[:munin][:graphs].keys.sort.each do |graph| -%>
63 <% if client[:munin][:graphs][graph][:title] -%>
64     <%= graph %>.graph_title <%= client[:munin][:graphs][graph][:title] %>
65 <% end -%>
66 <% if client[:munin][:graphs][graph][:vlabel] -%>
67     <%= graph %>.graph_vlabel <%= client[:munin][:graphs][graph][:vlabel] %>
68 <% end -%>
69 <% if client[:munin][:graphs][graph][:category] -%>
70     <%= graph %>.graph_category <%= client[:munin][:graphs][graph][:category] %>
71 <% end -%>
72 <% client[:munin][:graphs][graph][:values].keys.sort.each do |value| -%>
73 <% if client[:munin][:graphs][graph][:values][value][:sum] -%>
74     <%= graph %>.<%= value %>.sum <%= client[:munin][:graphs][graph][:values][value][:sum].join(" ") %>
75 <% end -%>
76 <% if client[:munin][:graphs][graph][:values][value][:label] -%>
77     <%= graph %>.<%= value %>.label <%= client[:munin][:graphs][graph][:values][value][:label] %>
78 <% end -%>
79 <% end -%>
80 <% end -%>
81 <% end -%>
82 <% end -%>
83
84 # Configure monitoring for switch1.openstreetmap.org
85 [openstreetmap.org;switch1.openstreetmap.org]
86     address 10.0.48.10
87     use_node_name no
88
89 # Configure monitoring for pdu1.ams.openstreetmap.org
90 [openstreetmap.org;pdu1.ams.openstreetmap.org]
91     address 10.0.48.10
92     use_node_name no
93
94 # Configure monitoring for pdu1.ams.openstreetmap.org
95 [openstreetmap.org;pdu2.ams.openstreetmap.org]
96     address 10.0.48.10
97     use_node_name no
98
99 # Configure compound graphs for ams.openstreetmap.org
100 [ams.openstreetmap.org]
101     update no
102     apcpdu_current.graph_title Load
103     apcpdu_current.graph_args --lower-limit 0
104     apcpdu_current.graph_vlabel Amps
105     apcpdu_current.graph_category power
106     apcpdu_current.graph_order pdu1=pdu1.ams.openstreetmap.org:snmp_pdu1_ams_openstreetmap_org_apcpdu_current.current pdu2=pdu2.ams.openstreetmap.org:snmp_pdu2_ams_openstreetmap_org_apcpdu_current.current
107     apcpdu_current.graph_total total
108     apcpdu_current.pdu1.label PDU A
109     apcpdu_current.pdu1.draw AREASTACK
110     apcpdu_current.pdu1.min 0
111     apcpdu_current.pdu2.label PDU B
112     apcpdu_current.pdu2.draw AREASTACK
113     apcpdu_current.pdu2.min 0
114     apcpdu_power.graph_title Power
115     apcpdu_power.graph_args --base 1000 --lower-limit 0
116     apcpdu_power.graph_vlabel Watts
117     apcpdu_power.graph_category power
118     apcpdu_power.graph_order pdu1=pdu1.ams.openstreetmap.org:snmp_pdu1_ams_openstreetmap_org_apcpdu_power.power pdu2=pdu2.ams.openstreetmap.org:snmp_pdu2_ams_openstreetmap_org_apcpdu_power.power
119     apcpdu_power.graph_total total
120     apcpdu_power.pdu1.label PDU A
121     apcpdu_power.pdu1.draw AREASTACK
122     apcpdu_power.pdu1.min 0
123     apcpdu_power.pdu2.label PDU B
124     apcpdu_power.pdu2.draw AREASTACK
125     apcpdu_power.pdu2.min 0
126     apcpdu_temperature.graph_title Temperature
127     apcpdu_temperature.graph_args --lower-limit 0
128     apcpdu_temperature.graph_vlabel Degrees Celsius
129     apcpdu_temperature.graph_category sensors
130     apcpdu_temperature.graph_order temperature=pdu1.ams.openstreetmap.org:snmp_pdu1_ams_openstreetmap_org_apcpdu_temperature.temperature
131     apcpdu_temperature.temperature.label Temperature
132     apcpdu_temperature.temperature.draw LINE2
133     apcpdu_temperature.temperature.min 0
134     apcpdu_humidity.graph_title Humidity
135     apcpdu_humidity.graph_args --lower-limit 0
136     apcpdu_humidity.graph_vlabel %
137     apcpdu_humidity.graph_category sensors
138     apcpdu_humidity.graph_order humidity=pdu1.ams.openstreetmap.org:snmp_pdu1_ams_openstreetmap_org_apcpdu_humidity.humidity
139     apcpdu_humidity.humidity.label Humidity
140     apcpdu_humidity.humidity.draw LINE2
141     apcpdu_humidity.humidity.min 0
142 <% unless @frontends.empty? -%>
143
144 # Configure compound graphs for www.openstreetmap.org
145 [www.openstreetmap.org]
146     update no
147     apache_accesses.graph_title Apache accesses
148     apache_accesses.graph_vlabel accesses / ${graph_period}
149     apache_accesses.graph_category apache
150     apache_accesses.graph_args --lower-limit 0
151     apache_accesses.accesses80.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:apache_accesses.accesses80", @frontends %>
152     apache_accesses.accesses80.label port 80
153     apache_accesses.accesses80.min 0
154     apache_volume.graph_title Apache volume
155     apache_volume.graph_vlabel bytes per ${graph_period}
156     apache_volume.graph_category apache
157     apache_volume.graph_args --lower-limit 0
158     apache_volume.volume80.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:apache_volume.volume80", @frontends %>
159     apache_volume.volume80.label port 80
160     apache_volume.volume80.min 0
161     network_in.graph_title Inbound network traffic
162     network_in.graph_vlabel bits in per ${graph_period}
163     network_in.graph_category network
164     network_in.graph_order <%= Chef::Munin.expand "%%%name%%%=%%name%%.openstreetmap.org:if_%%interface%%.down", @frontends %>
165     network_in.graph_total total
166     network_in.graph_args --lower-limit 0
167 <% @frontends.each do |fe| -%>
168     network_in.<%= fe[:name].tr("-", "_") %>.label <%= fe[:name] %>
169     network_in.<%= fe[:name].tr("-", "_") %>.cdef <%= fe[:name].tr("-", "_") %>,8,*
170     network_in.<%= fe[:name].tr("-", "_") %>.draw AREASTACK
171     network_in.<%= fe[:name].tr("-", "_") %>.min 0
172 <% end -%>
173     network_out.graph_title Outbound network traffic
174     network_out.graph_vlabel bits out per ${graph_period}
175     network_out.graph_category network
176     network_out.graph_order <%= Chef::Munin.expand "%%%name%%%=%%name%%.openstreetmap.org:if_%%interface%%.up", @frontends %>
177     network_out.graph_total total
178     network_out.graph_args --lower-limit 0
179 <% @frontends.each do |fe| -%>
180     network_out.<%= fe[:name].tr("-", "_") %>.label <%= fe[:name] %>
181     network_out.<%= fe[:name].tr("-", "_") %>.cdef <%= fe[:name].tr("-", "_") %>,8,*
182     network_out.<%= fe[:name].tr("-", "_") %>.draw AREASTACK
183     network_out.<%= fe[:name].tr("-", "_") %>.min 0
184 <% end -%>
185     api_calls_www.graph_title Active requests
186     api_calls_www.graph_vlabel Number of requests
187     api_calls_www.graph_category api
188     api_calls_www.graph_order map upload amf history full trkpts web other
189     api_calls_www.web.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_%%%name%%%.web", @frontends %>
190     api_calls_www.web.label Web site traffic
191     api_calls_www.upload.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_%%%name%%%.upload", @frontends %>
192     api_calls_www.upload.label Changeset diff uploads
193     api_calls_www.other.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_%%%name%%%.other", @frontends %>
194     api_calls_www.other.label Other API calls
195     api_calls_www.amf.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_%%%name%%%.amf", @frontends %>
196     api_calls_www.amf.label AMF API calls
197     api_calls_www.history.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_%%%name%%%.history", @frontends %>
198     api_calls_www.history.label Element history fetches
199     api_calls_www.full.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_%%%name%%%.full", @frontends %>
200     api_calls_www.full.label Full element fetches
201     api_calls_www.map.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_%%%name%%%.map", @frontends %>
202     api_calls_www.map.label Map API calls
203     api_calls_www.trkpts.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_%%%name%%%.trkpts", @frontends %>
204     api_calls_www.trkpts.label GPX trackpoints calls
205     api_calls_error.graph_title HTTP errors
206     api_calls_error.graph_vlabel Number of errors per ${graph_period}
207     api_calls_error.graph_category api
208     api_calls_error.graph_order http401 http422 http500 http502 http503 http509
209     api_calls_error.http401.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_status.http401", @frontends %>
210     api_calls_error.http401.label 401 Unauthorized
211     api_calls_error.http401.warning :0.5
212     api_calls_error.http422.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_status.http422", @frontends %>
213     api_calls_error.http422.label 422 Unprocessable Entity
214     api_calls_error.http422.warning :0.5
215     api_calls_error.http500.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_status.http500", @frontends %>
216     api_calls_error.http500.label 500 Internal Server Error
217     api_calls_error.http500.warning :0.5
218     api_calls_error.http502.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_status.http502", @frontends %>
219     api_calls_error.http502.label 502 Bad Gateway
220     api_calls_error.http502.warning :0.5
221     api_calls_error.http503.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_status.http503", @frontends %>
222     api_calls_error.http503.label 503 Service Unavailable
223     api_calls_error.http503.warning :0.5
224     api_calls_error.http509.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_status.http509", @frontends %>
225     api_calls_error.http509.label 509 Bandwidth Limit Exceeded
226     api_calls_error.http509.warning :5
227     api_calls_num.graph_title Requests processed
228     api_calls_num.graph_vlabel Number of requests per ${graph_period}
229     api_calls_num.graph_category api
230     api_calls_num.graph_order map upload amf history full trkpts web other
231     api_calls_num.web.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_num.web", @frontends %>
232     api_calls_num.web.label Web site traffic
233     api_calls_num.upload.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_num.upload", @frontends %>
234     api_calls_num.upload.label Changeset diff uploads
235     api_calls_num.other.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_num.other", @frontends %>
236     api_calls_num.other.label Other API calls
237     api_calls_num.amf.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_num.amf", @frontends %>
238     api_calls_num.amf.label AMF API calls
239     api_calls_num.history.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_num.history", @frontends %>
240     api_calls_num.history.label Element history fetches
241     api_calls_num.full.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_num.full", @frontends %>
242     api_calls_num.full.label Full element fetches
243     api_calls_num.map.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_num.map", @frontends %>
244     api_calls_num.map.label Map API calls
245     api_calls_num.trkpts.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_calls_num.trkpts", @frontends %>
246     api_calls_num.trkpts.label GPX trackpoints calls
247     api_waits_www.graph_title Wait times for active requests
248     api_waits_www.graph_vlabel Average time of requests
249     api_waits_www.graph_category api
250     api_waits_www.graph_order map upload amf history full trkpts web other
251     api_waits_www.web.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_waits_%%%name%%%.web", @frontends %>
252     api_waits_www.web.label Web site traffic
253     api_waits_www.web.cdef web,2,/
254     api_waits_www.upload.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_waits_%%%name%%%.upload", @frontends %>
255     api_waits_www.upload.label Changeset diff uploads
256     api_waits_www.upload.cdef upload,2,/
257     api_waits_www.other.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_waits_%%%name%%%.other", @frontends %>
258     api_waits_www.other.label Other API calls
259     api_waits_www.other.cdef other,2,/
260     api_waits_www.amf.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_waits_%%%name%%%.amf", @frontends %>
261     api_waits_www.amf.label AMF API calls
262     api_waits_www.amf.cdef amf,2,/
263     api_waits_www.history.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_waits_%%%name%%%.history", @frontends %>
264     api_waits_www.history.label Element history fetches
265     api_waits_www.history.cdef history,2,/
266     api_waits_www.full.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_waits_%%%name%%%.full", @frontends %>
267     api_waits_www.full.label Full element fetches
268     api_waits_www.full.cdef full,2,/
269     api_waits_www.map.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_waits_%%%name%%%.map", @frontends %>
270     api_waits_www.map.label Map API calls
271     api_waits_www.map.cdef map,2,/
272     api_waits_www.trkpts.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:api_waits_%%%name%%%.trkpts", @frontends %>
273     api_waits_www.trkpts.label GPX trackpoints calls
274     api_waits_www.trkpts.cdef trkpts,2,/
275     memcached_multi_commands.graph_title Commands
276     memcached_multi_commands.graph_vlabel Commands per ${graph_period}
277     memcached_multi_commands.graph_category memcached
278     memcached_multi_commands.graph_order cmd_get cmd_set cmd_touch get_hits get_misses delete_hits delete_misses incr_hits incr_misses decr_hits decr_misses touch_hits touch_misses
279     memcached_multi_commands.cmd_get.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_commands.cmd_get", @frontends %>
280     memcached_multi_commands.cmd_get.label Gets
281     memcached_multi_commands.cmd_set.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_commands.cmd_set", @frontends %>
282     memcached_multi_commands.cmd_set.label Sets
283     memcached_multi_commands.cmd_touch.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_commands.cmd_touch", @frontends %>
284     memcached_multi_commands.cmd_touch.label Touches
285     memcached_multi_commands.get_hits.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_commands.get_hits", @frontends %>
286     memcached_multi_commands.get_hits.label Get Hits
287     memcached_multi_commands.get_misses.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_commands.get_misses", @frontends %>
288     memcached_multi_commands.get_misses.label Get Misses
289     memcached_multi_commands.delete_hits.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_commands.delete_hits", @frontends %>
290     memcached_multi_commands.delete_hits.label Delete Hits
291     memcached_multi_commands.delete_misses.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_commands.delete_misses", @frontends %>
292     memcached_multi_commands.delete_misses.label Delete Misses
293     memcached_multi_commands.incr_hits.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_commands.incr_hits", @frontends %>
294     memcached_multi_commands.incr_hits.label Increment Hits
295     memcached_multi_commands.incr_misses.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_commands.incr_misses", @frontends %>
296     memcached_multi_commands.incr_misses.label Increment Misses
297     memcached_multi_commands.decr_hits.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_commands.decr_hits", @frontends %>
298     memcached_multi_commands.decr_hits.label Decrement Hits
299     memcached_multi_commands.decr_misses.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_commands.decr_misses", @frontends %>
300     memcached_multi_commands.decr_misses.label Decrement Misses
301     memcached_multi_commands.touch_hits.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_commands.touch_hits", @frontends %>
302     memcached_multi_commands.touch_hits.label Touch Hits
303     memcached_multi_commands.touch_misses.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_commands.touch_misses", @frontends %>
304     memcached_multi_commands.touch_misses.label Touch Misses
305     memcached_multi_conns.graph_title Connections
306     memcached_multi_conns.graph_vlabel Connections per ${graph_period}
307     memcached_multi_conns.graph_category memcached
308     memcached_multi_conns.graph_order max_conns curr_conns avg_conns
309     memcached_multi_conns.curr_conns.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_conns.curr_conns", @frontends %>
310     memcached_multi_conns.curr_conns.label Current Connections
311     memcached_multi_conns.max_conns.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_conns.max_conns", @frontends %>
312     memcached_multi_conns.max_conns.label Max Connections
313     memcached_multi_conns.avg_conns.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_conns.avg_conns", @frontends %>
314     memcached_multi_conns.avg_conns.label Avg Connections
315     memcached_multi_evictions.graph_title Evictions
316     memcached_multi_evictions.graph_vlabel Evictions per ${graph_period}
317     memcached_multi_evictions.graph_category memcached
318     memcached_multi_evictions.evictions.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_evictions.evictions", @frontends %>
319     memcached_multi_evictions.evictions.label Evictions
320     memcached_multi_evictions.evicted_nonzero.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_evictions.evicted_nonzero", @frontends %>
321     memcached_multi_evictions.evicted_nonzero.label Evictions prior to Expire
322     memcached_multi_evictions.reclaimed.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_evictions.reclaimed", @frontends %>
323     memcached_multi_evictions.reclaimed.label Reclaimed Items
324     memcached_multi_items.graph_title Items
325     memcached_multi_items.graph_vlabel Items in Memcached
326     memcached_multi_items.graph_category memcached
327     memcached_multi_items.graph_order curr_items total_items
328     memcached_multi_items.curr_items.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_items.curr_items", @frontends %>
329     memcached_multi_items.curr_items.label Current Items
330     memcached_multi_items.total_items.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_items.total_items", @frontends %>
331     memcached_multi_items.total_items.label New Items
332     memcached_multi_memory.graph_title Memory Usage
333     memcached_multi_memory.graph_vlabel Bytes Used
334     memcached_multi_memory.graph_category memcached
335     memcached_multi_memory.graph_order limit_maxbytes bytes
336     memcached_multi_memory.limit_maxbytes.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_memory.limit_maxbytes", @frontends %>
337     memcached_multi_memory.limit_maxbytes.label Maximum Bytes Allocated
338     memcached_multi_memory.bytes.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_memory.bytes", @frontends %>
339     memcached_multi_memory.bytes.label Current Bytes Used
340     memcached_multi_bytes.graph_title Network Traffic
341     memcached_multi_bytes.graph_args --base 1000
342     memcached_multi_bytes.graph_vlabel bits in (-) / out (+)
343     memcached_multi_bytes.graph_category memcached
344     memcached_multi_bytes.graph_order bytes_read bytes_written
345     memcached_multi_bytes.bytes_read.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_bytes.bytes_read", @frontends %>
346     memcached_multi_bytes.bytes_read.label Network Traffic coming in (-)
347     memcached_multi_bytes.bytes_read.cdef bytes_read,8,*
348     memcached_multi_bytes.bytes_read.graph no
349     memcached_multi_bytes.bytes_written.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:memcached_multi_bytes.bytes_written", @frontends %>
350     memcached_multi_bytes.bytes_written.negative bytes_read
351     memcached_multi_bytes.bytes_written.label Traffic in (-) / out (+)
352     memcached_multi_bytes.bytes_written.cdef bytes_written,8,*
353 <% end -%>
354 <% unless @renderers.empty? -%>
355
356 # Configure compound graphs for render.openstreetmap.org
357 [render.openstreetmap.org]
358     update no
359     apache_accesses.graph_title Apache accesses
360     apache_accesses.graph_vlabel accesses / ${graph_period}
361     apache_accesses.graph_category apache
362     apache_accesses.graph_order <%= Chef::Munin.expand "%%%name%%%=%%name%%.openstreetmap.org:apache_accesses.accesses80", @renderers %>
363     apache_accesses.graph_total total
364     apache_accesses.graph_args --lower-limit 0
365 <% @renderers.each do |rs| -%>
366     apache_accesses.<%= rs[:name].tr("-", "_") %>.label <%= rs[:name] %>
367     apache_accesses.<%= rs[:name].tr("-", "_") %>.draw AREASTACK
368     apache_accesses.<%= rs[:name].tr("-", "_") %>.min 0
369 <% end -%>
370     apache_volume.graph_title Apache volume
371     apache_volume.graph_vlabel bytes per ${graph_period}
372     apache_volume.graph_category apache
373     apache_volume.graph_order <%= Chef::Munin.expand "%%%name%%%=%%name%%.openstreetmap.org:apache_volume.volume80", @renderers %>
374     apache_volume.graph_total total
375     apache_volume.graph_args --lower-limit 0
376 <% @renderers.each do |rs| -%>
377     apache_volume.<%= rs[:name].tr("-", "_") %>.label <%= rs[:name] %>
378     apache_volume.<%= rs[:name].tr("-", "_") %>.draw AREASTACK
379     apache_volume.<%= rs[:name].tr("-", "_") %>.min 0
380 <% end -%>
381     network_in.graph_title Inbound network traffic
382     network_in.graph_vlabel bits in per ${graph_period}
383     network_in.graph_category network
384     network_in.graph_order <%= Chef::Munin.expand "%%%name%%%=%%name%%.openstreetmap.org:if_%%interface%%.down", @renderers %>
385     network_in.graph_total total
386     network_in.graph_args --lower-limit 0
387 <% @renderers.each do |rs| -%>
388     network_in.<%= rs[:name].tr("-", "_") %>.label <%= rs[:name] %>
389     network_in.<%= rs[:name].tr("-", "_") %>.cdef <%= rs[:name].tr("-", "_") %>,8,*
390     network_in.<%= rs[:name].tr("-", "_") %>.draw AREASTACK
391     network_in.<%= rs[:name].tr("-", "_") %>.min 0
392 <% end -%>
393     network_out.graph_title Outbound network traffic
394     network_out.graph_vlabel bits out per ${graph_period}
395     network_out.graph_category network
396     network_out.graph_order <%= Chef::Munin.expand "%%%name%%%=%%name%%.openstreetmap.org:if_%%interface%%.up", @renderers %>
397     network_out.graph_total total
398     network_out.graph_args --lower-limit 0
399 <% @renderers.each do |rs| -%>
400     network_out.<%= rs[:name].tr("-", "_") %>.label <%= rs[:name] %>
401     network_out.<%= rs[:name].tr("-", "_") %>.cdef <%= rs[:name].tr("-", "_") %>,8,*
402     network_out.<%= rs[:name].tr("-", "_") %>.draw AREASTACK
403     network_out.<%= rs[:name].tr("-", "_") %>.min 0
404 <% end -%>
405     mod_tile_fresh.graph_title freshness of served tiles
406     mod_tile_fresh.graph_args --base 1000 -l 0
407     mod_tile_fresh.graph_vlabel tiles per ${graph_period}
408     mod_tile_fresh.graph_order fresh freshrender old oldrender outdated outdatedrender
409     mod_tile_fresh.graph_category mod_tile
410     mod_tile_fresh.fresh.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:mod_tile_fresh.fresh", @renderers %>
411     mod_tile_fresh.fresh.label Fresh from disk
412     mod_tile_fresh.fresh.draw AREA
413     mod_tile_fresh.freshrender.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:mod_tile_fresh.freshrender", @renderers %>
414     mod_tile_fresh.freshrender.label Freshly rendered
415     mod_tile_fresh.freshrender.draw STACK
416     mod_tile_fresh.old.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:mod_tile_fresh.old", @renderers %>
417     mod_tile_fresh.old.label Old from disk
418     mod_tile_fresh.old.draw STACK
419     mod_tile_fresh.oldrender.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:mod_tile_fresh.oldrender", @renderers %>
420     mod_tile_fresh.oldrender.label Old tile, attempted render
421     mod_tile_fresh.oldrender.draw STACK
422     mod_tile_fresh.outdated.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:mod_tile_fresh.outdated", @renderers %>
423     mod_tile_fresh.outdated.label Outdated from disk
424     mod_tile_fresh.outdated.draw STACK
425     mod_tile_fresh.outdatedrender.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:mod_tile_fresh.outdatedrender", @renderers %>
426     mod_tile_fresh.outdatedrender.label Outdated tile, attempted render
427     mod_tile_fresh.outdatedrender.draw STACK
428     mod_tile_response.graph_title mod_tile HTTP response codes
429     mod_tile_response.graph_args --base 1000 -l 0
430     mod_tile_response.graph_vlabel responses per ${graph_period}
431     mod_tile_response.graph_order response200 response304 response404 response500
432     mod_tile_response.graph_category mod_tile
433     mod_tile_response.response200.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:mod_tile_response.response200", @renderers %>
434     mod_tile_response.response200.label 200 OK
435     mod_tile_response.response200.draw AREA
436     mod_tile_response.response304.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:mod_tile_response.response304", @renderers %>
437     mod_tile_response.response304.label 304 Not Modified
438     mod_tile_response.response304.draw STACK
439     mod_tile_response.response404.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:mod_tile_response.response404", @renderers %>
440     mod_tile_response.response404.label 404 Not Found
441     mod_tile_response.response404.draw STACK
442     mod_tile_response.response500.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:mod_tile_response.response500", @renderers %>
443     mod_tile_response.response500.label 500 Internal Error
444     mod_tile_response.response500.draw STACK
445     mod_tile_zoom.graph_title mod_tile responses by zoom layer
446     mod_tile_zoom.graph_args --base 1000 -l 0
447     mod_tile_zoom.graph_vlabel responses per ${graph_period}
448     mod_tile_zoom.graph_order z1 z2 z3 z4 z5 z6
449     mod_tile_zoom.graph_category mod_tile
450     mod_tile_zoom.z1.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:mod_tile_zoom.z1", @renderers %>
451     mod_tile_zoom.z1.label z1-8
452     mod_tile_zoom.z1.draw AREA
453     mod_tile_zoom.z2.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:mod_tile_zoom.z2", @renderers %>
454     mod_tile_zoom.z2.label z9-12
455     mod_tile_zoom.z2.draw STACK
456     mod_tile_zoom.z3.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:mod_tile_zoom.z3", @renderers %>
457     mod_tile_zoom.z3.label z13-14
458     mod_tile_zoom.z3.draw STACK
459     mod_tile_zoom.z4.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:mod_tile_zoom.z4", @renderers %>
460     mod_tile_zoom.z4.label z15-16
461     mod_tile_zoom.z4.draw STACK
462     mod_tile_zoom.z5.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:mod_tile_zoom.z5", @renderers %>
463     mod_tile_zoom.z5.label z17-18
464     mod_tile_zoom.z5.draw STACK
465     mod_tile_zoom.z6.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:mod_tile_zoom.z6", @renderers %>
466     mod_tile_zoom.z6.label z19-20
467     mod_tile_zoom.z6.draw STACK
468     renderd_queue.graph_title Renderd queue length
469     renderd_queue.graph_args --base 1000 -l 0
470     renderd_queue.graph_vlabel metatiles
471     renderd_queue.graph_order reqPrio req reqLow dirty reqBulk
472     renderd_queue.graph_category renderd
473     renderd_queue.reqPrio.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_queue.reqPrio", @renderers %>
474     renderd_queue.reqPrio.label Priority request Queue
475     renderd_queue.reqPrio.type GAUGE
476     renderd_queue.req.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_queue.req", @renderers %>
477     renderd_queue.req.label Request Queue
478     renderd_queue.req.type GAUGE
479     renderd_queue.reqLow.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_queue.reqLow", @renderers %>
480     renderd_queue.reqLow.label Low priority request Queue
481     renderd_queue.reqLow.type GAUGE
482     renderd_queue.dirty.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_queue.dirty", @renderers %>
483     renderd_queue.dirty.label Dirty Queue
484     renderd_queue.dirty.type GAUGE
485     renderd_queue.reqBulk.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_queue.reqBulk", @renderers %>
486     renderd_queue.reqBulk.label Bulk request Queue
487     renderd_queue.reqBulk.type GAUGE
488     renderd_processed.graph_title Renderd throughput
489     renderd_processed.graph_args --base 1000 -l 0
490     renderd_processed.graph_vlabel Metatiles per ${graph_period}
491     renderd_processed.graph_order reqPrio req reqLow dirty reqBulk dropped
492     renderd_processed.graph_category renderd
493     renderd_processed.graph_info Displays the number of metatiles being rendered by renderd per ${graph_period}
494     renderd_processed.reqPrio.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_processed.reqPrio", @renderers %>
495     renderd_processed.reqPrio.label Priority request Queue
496     renderd_processed.reqPrio.draw AREA
497     renderd_processed.reqPrio.info Throughput of Metatiles submitted high priority for on the fly rendering
498     renderd_processed.req.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_processed.req", @renderers %>
499     renderd_processed.req.label Request Queue
500     renderd_processed.req.draw STACK
501     renderd_processed.req.info Throughput of Metatiles submitted for on the fly rendering
502     renderd_processed.reqLow.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_processed.reqLow", @renderers %>
503     renderd_processed.reqLow.label Low priority request Queue
504     renderd_processed.reqLow.draw STACK
505     renderd_processed.reqLow.info Throughput of Metatiles submitted low priority for on the fly rendering
506     renderd_processed.dirty.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_processed.dirty", @renderers %>
507     renderd_processed.dirty.label Dirty Queue
508     renderd_processed.dirty.draw STACK
509     renderd_processed.dirty.info Throughput of dirty Metatiles submitted for re-render
510     renderd_processed.reqBulk.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_processed.reqBulk", @renderers %>
511     renderd_processed.reqBulk.label Bulk request Queue
512     renderd_processed.reqBulk.draw STACK
513     renderd_processed.reqBulk.info Throughput of Metatiles submitted with background priority
514     renderd_processed.dropped.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_processed.dropped", @renderers %>
515     renderd_processed.dropped.label Dropped (x20)
516     renderd_processed.dropped.draw LINE2
517     renderd_processed.dropped.info Number of Tiles dropped due to queue overload (x20)
518     renderd_processed.dropped.cdef dropped,20,/
519     renderd_zoom.graph_title Renderd throughput by zoom
520     renderd_zoom.graph_args --base 1000 -l 0
521     renderd_zoom.graph_vlabel Metatiles per ${graph_period}
522     renderd_zoom.graph_order z1 z2 z3 z4 z5 z6
523     renderd_zoom.graph_category renderd
524     renderd_zoom.graph_info Displays the number of metatiles being rendered by renderd per ${graph_period}
525     renderd_zoom.z1.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_zoom.z1", @renderers %>
526     renderd_zoom.z1.label zoom z0 - z8
527     renderd_zoom.z1.draw AREA
528     renderd_zoom.z1.info Throughput of Metatiles for z0 - z8
529     renderd_zoom.z2.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_zoom.z2", @renderers %>
530     renderd_zoom.z2.label zoom z9 - z12
531     renderd_zoom.z2.draw STACK
532     renderd_zoom.z2.info Throughput of Metatiles for z9 - z12
533     renderd_zoom.z3.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_zoom.z3", @renderers %>
534     renderd_zoom.z3.label zoom z13 - z14
535     renderd_zoom.z3.draw STACK
536     renderd_zoom.z3.info Throughput of Metatiles for z13 - z14
537     renderd_zoom.z4.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_zoom.z4", @renderers %>
538     renderd_zoom.z4.label zoom z15 - z16
539     renderd_zoom.z4.draw STACK
540     renderd_zoom.z4.info Throughput of Metatiles for z15 - z16
541     renderd_zoom.z5.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_zoom.z5", @renderers %>
542     renderd_zoom.z5.label zoom z17 - z18
543     renderd_zoom.z5.draw STACK
544     renderd_zoom.z5.info Throughput of Metatiles for z17 - z18
545     renderd_zoom.z6.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_zoom.z6", @renderers %>
546     renderd_zoom.z6.label zoom z19 - z20
547     renderd_zoom.z6.draw STACK
548     renderd_zoom.z6.info Throughput of Metatiles for z19 - z20
549     renderd_queue_time.graph_title Renderd time spent by queue
550     renderd_queue_time.graph_args --base 1000 -l 0
551     renderd_queue_time.graph_vlabel metatiles
552     renderd_queue_time.graph_order reqPrio req reqLow dirty reqBulk
553     renderd_queue_time.graph_category renderd
554     renderd_queue_time.reqPrio.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_queue_time.reqPrio", @renderers %>
555     renderd_queue_time.reqPrio.label Priority request queue
556     renderd_queue_time.reqPrio.cdef reqPrio,1000,/
557     renderd_queue_time.reqPrio.draw AREA
558     renderd_queue_time.reqPrio.info Time for priority request queue
559     renderd_queue_time.req.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_queue_time.req", @renderers %>
560     renderd_queue_time.req.label Request queue
561     renderd_queue_time.req.cdef req,1000,/
562     renderd_queue_time.req.draw STACK
563     renderd_queue_time.req.info Time for Request queue
564     renderd_queue_time.reqLow.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_queue_time.reqLow", @renderers %>
565     renderd_queue_time.reqLow.label Low priority request queue
566     renderd_queue_time.reqLow.cdef reqLow,1000,/
567     renderd_queue_time.reqLow.draw STACK
568     renderd_queue_time.reqLow.info Time for low priority request queue
569     renderd_queue_time.dirty.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_queue_time.dirty", @renderers %>
570     renderd_queue_time.dirty.label Dirty queue
571     renderd_queue_time.dirty.cdef dirty,1000,/
572     renderd_queue_time.dirty.draw STACK
573     renderd_queue_time.dirty.info Time for dirty queue
574     renderd_queue_time.reqBulk.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_queue_time.reqBulk", @renderers %>
575     renderd_queue_time.reqBulk.label Bulk queue
576     renderd_queue_time.reqBulk.cdef reqBulk,1000,/
577     renderd_queue_time.reqBulk.draw STACK
578     renderd_queue_time.reqBulk.info Time for bulk queue
579     renderd_zoom_time.graph_title Renderd time spent by zoom
580     renderd_zoom_time.graph_args --base 1000 -l 0
581     renderd_zoom_time.graph_vlabel time spent per ${graph_period}
582     renderd_zoom_time.graph_order zoomtime1 zoomtime2 zoomtime3 zoomtime4 zoomtime5 zoomtime6
583     renderd_zoom_time.graph_category renderd
584     renderd_zoom_time.graph_info Displays the amount of time renderd has spent rendering tiles of a given zoom per ${graph_period}
585     renderd_zoom_time.zoomtime1.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_zoom_time.zoomtime1", @renderers %>
586     renderd_zoom_time.zoomtime1.label zoom z0 - z8
587     renderd_zoom_time.zoomtime1.cdef zoomtime1,1000,/
588     renderd_zoom_time.zoomtime1.draw AREA
589     renderd_zoom_time.zoomtime1.info Time for Metatiles z0 - z8
590     renderd_zoom_time.zoomtime2.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_zoom_time.zoomtime2", @renderers %>
591     renderd_zoom_time.zoomtime2.label zoom z9 - z12
592     renderd_zoom_time.zoomtime2.cdef zoomtime2,1000,/
593     renderd_zoom_time.zoomtime2.draw STACK
594     renderd_zoom_time.zoomtime2.info Time for Metatiles for z9 - z12
595     renderd_zoom_time.zoomtime3.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_zoom_time.zoomtime3", @renderers %>
596     renderd_zoom_time.zoomtime3.label zoom z13 - z14
597     renderd_zoom_time.zoomtime3.cdef zoomtime3,1000,/
598     renderd_zoom_time.zoomtime3.draw STACK
599     renderd_zoom_time.zoomtime3.info Time for Metatiles for z13 - z14
600     renderd_zoom_time.zoomtime4.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_zoom_time.zoomtime4", @renderers %>
601     renderd_zoom_time.zoomtime4.label zoom z15 - z16
602     renderd_zoom_time.zoomtime4.cdef zoomtime4,1000,/
603     renderd_zoom_time.zoomtime4.draw STACK
604     renderd_zoom_time.zoomtime4.info Time for Metatiles for z15 - z16
605     renderd_zoom_time.zoomtime5.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_zoom_time.zoomtime5", @renderers %>
606     renderd_zoom_time.zoomtime5.label zoom z17 - z18
607     renderd_zoom_time.zoomtime5.cdef zoomtime5,1000,/
608     renderd_zoom_time.zoomtime5.draw STACK
609     renderd_zoom_time.zoomtime5.info Time for Metatiles for z17 - z18
610     renderd_zoom_time.zoomtime6.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:renderd_zoom_time.zoomtime6", @renderers %>
611     renderd_zoom_time.zoomtime6.label zoom z19 - z20
612     renderd_zoom_time.zoomtime6.cdef zoomtime6,1000,/
613     renderd_zoom_time.zoomtime6.draw STACK
614     renderd_zoom_time.zoomtime6.info Time for Metatiles for z19 - z20
615 <% end -%>
616 <% unless @geocoders.empty? -%>
617
618 # Configure compound graphs for nominatim.openstreetmap.org
619 [nominatim.openstreetmap.org]
620     update no
621     nominatim_requests.graph_title Requests by API call
622     nominatim_requests.graph_args --base 1000 -l 0
623     nominatim_requests.graph_vlabel requests per minute
624     nominatim_requests.graph_category nominatim
625     nominatim_requests.graph_order z1 z2 z3 z4
626     nominatim_requests.z1.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:nominatim_requests.z1", @geocoders %>
627     nominatim_requests.z1.label reverse
628     nominatim_requests.z1.draw AREA
629     nominatim_requests.z1.type GAUGE
630     nominatim_requests.z2.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:nominatim_requests.z2", @geocoders %>
631     nominatim_requests.z2.label search (successful)
632     nominatim_requests.z2.draw STACK
633     nominatim_requests.z2.type GAUGE
634     nominatim_requests.z3.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:nominatim_requests.z3", @geocoders %>
635     nominatim_requests.z3.label search (no result)
636     nominatim_requests.z3.draw STACK
637     nominatim_requests.z3.type GAUGE
638     nominatim_requests.z4.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:nominatim_requests.z4", @geocoders %>
639     nominatim_requests.z4.label details
640     nominatim_requests.z4.draw STACK
641     nominatim_requests.z4.type GAUGE
642     nominatim_throttled_ips.graph_title Restricted IPs
643     nominatim_throttled_ips.graph_args -l 0
644     nominatim_throttled_ips.graph_vlabel number of IPs
645     nominatim_throttled_ips.graph_category nominatim
646     nominatim_throttled_ips.graph_order bulk block
647     nominatim_throttled_ips.bulk.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:nominatim_throttled_ips.bulk", @geocoders %>
648     nominatim_throttled_ips.bulk.label bulk
649     nominatim_throttled_ips.bulk.draw AREA
650     nominatim_throttled_ips.bulk.type GAUGE
651     nominatim_throttled_ips.block.sum <%= Chef::Munin.expand "%%name%%.openstreetmap.org:nominatim_throttled_ips.block", @geocoders %>
652     nominatim_throttled_ips.block.label blocked
653     nominatim_throttled_ips.block.draw STACK
654     nominatim_throttled_ips.block.type GAUGE
655 <% end -%>