]> git.openstreetmap.org Git - chef.git/commitdiff
Add Nginx totals to tile.openstreetmap.org munin
authorPaul Norman <penorman@mac.com>
Sat, 21 Mar 2020 01:26:10 +0000 (18:26 -0700)
committerPaul Norman <penorman@mac.com>
Sat, 21 Mar 2020 01:26:10 +0000 (18:26 -0700)
cookbooks/munin/templates/default/munin.conf.erb

index add1593d8ceb61ca170ff1dfa35db324bed2dc81..cd41a7ac8f9aa1318780cae58fef3bf666654d8c 100644 (file)
@@ -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? -%>