X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/b9f9f8c373873c0629c9acdfd08aa9e8ebb20b6e..f84e757e69d8df0221b73f540890cc6ff73fc541:/cookbooks/munin/files/default/plugins/api_calls_num diff --git a/cookbooks/munin/files/default/plugins/api_calls_num b/cookbooks/munin/files/default/plugins/api_calls_num index 7c8ccabcc..e2f74d9ff 100755 --- a/cookbooks/munin/files/default/plugins/api_calls_num +++ b/cookbooks/munin/files/default/plugins/api_calls_num @@ -11,7 +11,7 @@ CALL_TYPES = { :trkpts => "GPX trackpoints calls", :web => "Web site traffic", :other => "Other API calls" -} +}.freeze if ARGV[0] == "config" puts "graph_title Requests processed" @@ -22,6 +22,7 @@ if ARGV[0] == "config" CALL_TYPES.each do |type, label| puts "#{type}.label #{label}" puts "#{type}.type DERIVE" + puts "#{type}.min 0" end else statistics = JSON.parse(File.read("/srv/www.openstreetmap.org/rails/tmp/statistics.json"))