X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7b9ec4b60ee39614d1d083d7220e76b07d2b275f..dec78bdba98f4cf10d878f2b55b189cdb49efd73:/cookbooks/munin/templates/default/munin.conf.erb diff --git a/cookbooks/munin/templates/default/munin.conf.erb b/cookbooks/munin/templates/default/munin.conf.erb index 16205df69..7e3f9de6b 100644 --- a/cookbooks/munin/templates/default/munin.conf.erb +++ b/cookbooks/munin/templates/default/munin.conf.erb @@ -336,3 +336,108 @@ unknown_limit 144 <% @tilecaches.each do |tc| -%> squid_times_dnsl.<%= tc[:name] %>.label <%= tc[:name] %> <% end -%> + +# Configure compound graphs for render.openstreetmap.org +[render.openstreetmap] + update no + apache_accesses.graph_title Apache accesses + apache_accesses.graph_vlabel accesses / ${graph_period} + apache_accesses.graph_category apache + apache_accesses.graph_order <%= Chef::Munin.expand "%%name%%=%%name%%.openstreetmap:apache_accesses.accesses80", @renderers %> + apache_accesses.graph_total total +<% @renderers.each do |rs| -%> + apache_accesses.<%= rs[:name] %>.label <%= rs[:name] %> + apache_accesses.<%= rs[:name] %>.draw AREASTACK +<% end -%> + apache_volume.graph_title Apache volume + apache_volume.graph_vlabel bytes per ${graph_period} + apache_volume.graph_category apache + apache_volume.graph_order <%= Chef::Munin.expand "%%name%%=%%name%%.openstreetmap:apache_volume.volume80", @renderers %> + apache_volume.graph_total total +<% @renderers.each do |rs| -%> + apache_volume.<%= rs[:name] %>.label <%= rs[:name] %> + apache_volume.<%= rs[:name] %>.draw AREASTACK +<% end -%> + network_in.graph_title Inbound network traffic + network_in.graph_vlabel bits in per ${graph_period} + network_in.graph_category network + network_in.graph_order <%= Chef::Munin.expand "%%name%%=%%name%%.openstreetmap:if_%%interface%%.down", @renderers %> + network_in.graph_total total +<% @renderers.each do |rs| -%> + network_in.<%= rs[:name] %>.label <%= rs[:name] %> + network_in.<%= rs[:name] %>.cdef <%= rs[:name] %>,8,* + network_in.<%= rs[:name] %>.draw AREASTACK +<% end -%> + network_out.graph_title Outbound network traffic + network_out.graph_vlabel bits out per ${graph_period} + network_out.graph_category network + network_out.graph_order <%= Chef::Munin.expand "%%name%%=%%name%%.openstreetmap:if_%%interface%%.up", @renderers %> + network_out.graph_total total +<% @renderers.each do |rs| -%> + network_out.<%= rs[:name] %>.label <%= rs[:name] %> + network_out.<%= rs[:name] %>.cdef <%= rs[:name] %>,8,* + network_out.<%= rs[:name] %>.draw AREASTACK +<% end -%> + mod_tile_fresh.graph_title freshness of served tiles + mod_tile_fresh.graph_args --base 1000 -l 0 + mod_tile_fresh.graph_vlabel tiles per ${graph_period} + mod_tile_fresh.graph_order fresh freshrender old oldrender outdated outdatedrender + mod_tile_fresh.graph_category mod_tile + mod_tile_fresh.fresh.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_fresh.fresh", @renderers %> + mod_tile_fresh.fresh.label Fresh from disk + mod_tile_fresh.fresh.draw AREA + mod_tile_fresh.freshrender.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_fresh.freshrender", @renderers %> + mod_tile_fresh.freshrender.label Freshly rendered + mod_tile_fresh.freshrender.draw STACK + mod_tile_fresh.old.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_fresh.old", @renderers %> + mod_tile_fresh.old.label Old from disk + mod_tile_fresh.old.draw STACK + mod_tile_fresh.oldrender.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_fresh.oldrender", @renderers %> + mod_tile_fresh.oldrender.label Old tile, attempted render + mod_tile_fresh.oldrender.draw STACK + mod_tile_fresh.outdated.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_fresh.outdated", @renderers %> + mod_tile_fresh.outdated.label Outdated from disk + mod_tile_fresh.outdated.draw STACK + mod_tile_fresh.outdatedrender.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_fresh.outdatedrender", @renderers %> + mod_tile_fresh.outdatedrender.label Outdated tile, attempted render + mod_tile_fresh.outdatedrender.draw STACK + mod_tile_response.graph_title mod_tile HTTP response codes + mod_tile_response.graph_args --base 1000 -l 0 + mod_tile_response.graph_vlabel responses per ${graph_period} + mod_tile_response.graph_order response200 response304 response404 response500 + mod_tile_response.graph_category mod_tile + mod_tile_response.response200.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_response.response200", @renderers %> + mod_tile_response.response200.label 200 OK + mod_tile_response.response200.draw AREA + mod_tile_response.response304.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_response.response304", @renderers %> + mod_tile_response.response304.label 304 Not Modified + mod_tile_response.response304.draw STACK + mod_tile_response.response404.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_response.response404", @renderers %> + mod_tile_response.response404.label 404 Not Found + mod_tile_response.response404.draw STACK + mod_tile_response.response500.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_response.response500", @renderers %> + mod_tile_response.response500.label 500 Internal Error + mod_tile_response.response500.draw STACK + mod_tile_zoom.graph_title mod_tile responses by zoom layer + mod_tile_zoom.graph_args --base 1000 -l 0 + mod_tile_zoom.graph_vlabel responses per ${graph_period} + mod_tile_zoom.graph_order z1 z2 z3 z4 z5 z6 + mod_tile_zoom.graph_category mod_tile + mod_tile_zoom.z1.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_zoom.z1", @renderers %> + mod_tile_zoom.z1.label z1-8 + mod_tile_zoom.z1.draw AREA + mod_tile_zoom.z2.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_zoom.z2", @renderers %> + mod_tile_zoom.z2.label z9-12 + mod_tile_zoom.z2.draw STACK + mod_tile_zoom.z3.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_zoom.z3", @renderers %> + mod_tile_zoom.z3.label z13-14 + mod_tile_zoom.z3.draw STACK + mod_tile_zoom.z4.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_zoom.z4", @renderers %> + mod_tile_zoom.z4.label z15-16 + mod_tile_zoom.z4.draw STACK + mod_tile_zoom.z5.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_zoom.z5", @renderers %> + mod_tile_zoom.z5.label z17-18 + mod_tile_zoom.z5.draw STACK + mod_tile_zoom.z6.sum <%= Chef::Munin.expand "%%name%%.openstreetmap:mod_tile_zoom.z6", @renderers %> + mod_tile_zoom.z6.label z19-20 + mod_tile_zoom.z6.draw STACK