]> git.openstreetmap.org Git - chef.git/commitdiff
Don't create compound nominatim graphs if the server list is empty
authorTom Hughes <tom@compton.nu>
Sat, 1 Oct 2016 00:03:11 +0000 (01:03 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 1 Oct 2016 00:03:37 +0000 (01:03 +0100)
cookbooks/munin/templates/default/munin.conf.erb

index 791007f98a242f1253deb578dcbd6c14014f3301..d5dc7a4b887678ca7a640437b35f8ea926e64f7d 100644 (file)
@@ -702,6 +702,7 @@ unknown_limit 144
     renderd_zoom_time.zoomtime6.cdef zoomtime6,1000,/
     renderd_zoom_time.zoomtime6.draw STACK
     renderd_zoom_time.zoomtime6.info Time for Metatiles for z19 - z20
+<% unless @geocoders.empty? -%>
 
 # Configure compound graphs for nominatim.openstreetmap.org
 [nominatim.openstreetmap]
@@ -740,3 +741,4 @@ unknown_limit 144
     nominatim_throttled_ips.block.label blocked
     nominatim_throttled_ips.block.draw STACK
     nominatim_throttled_ips.block.type GAUGE
+<% end -%>