From: Paul Norman Date: Sat, 21 Mar 2020 01:26:10 +0000 (-0700) Subject: Add Nginx totals to tile.openstreetmap.org munin X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/24e501ee05d951cc4472496a6d340613ab992bdd Add Nginx totals to tile.openstreetmap.org munin --- diff --git a/cookbooks/munin/templates/default/munin.conf.erb b/cookbooks/munin/templates/default/munin.conf.erb index add1593d8..cd41a7ac8 100644 --- a/cookbooks/munin/templates/default/munin.conf.erb +++ b/cookbooks/munin/templates/default/munin.conf.erb @@ -506,6 +506,18 @@ unknown_limit 144 squid_byte_hitrates.<%= tc[:name].tr("-", "_") %>_hits.cdef <%= tc[:name].tr("-", "_") %>_hits,<%= tc[:name].tr("-", "_") %>_total,/,100,* squid_byte_hitrates.<%= tc[:name].tr("-", "_") %>_hits.label <%= tc[:name] %> squid_byte_hitrates.<%= tc[:name].tr("-", "_") %>_hits.draw LINE1 +<% end -%> + nginx_requests.graph_title Nginx requests + nginx_requests.graph_vlabel Requests per ${graph_period} + nginx_requests.graph_category nginx + nginx_requests.graph_order <%= Chef::Munin.expand "%%%name%%%=%%name%%.openstreetmap.org:nginx_request.request", @tilecaches %> + nginx_requests.graph_total total + nginx_requests.graph_args --lower-limit 0 +<% @tilecaches.each do |tc| -%> + nginx_requests.<%= tc[:name].tr("-", "_") %>.label <%= tc[:name] %> + nginx_requests.<%= tc[:name].tr("-", "_") %>.cdef <%= tc[:name].tr("-", "_") %>,8,* + nginx_requests.<%= tc[:name].tr("-", "_") %>.draw AREASTACK + nginx_requests.<%= tc[:name].tr("-", "_") %>.min 0 <% end -%> <% end -%> <% unless @renderers.empty? -%>