X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/de9f35ad554a2b36e16cd22af8a9175cb442f01f..c1c41b65a4d71cd179d95dba87e53a39a34c85c3:/cookbooks/munin/files/default/plugins/api_calls_status diff --git a/cookbooks/munin/files/default/plugins/api_calls_status b/cookbooks/munin/files/default/plugins/api_calls_status index 8167f21d6..0d7c9b645 100755 --- a/cookbooks/munin/files/default/plugins/api_calls_status +++ b/cookbooks/munin/files/default/plugins/api_calls_status @@ -19,11 +19,12 @@ HTTP_STATUSES = { "410" => "Gone", "412" => "Precondition Failed", "416" => "Requested Range Not Satisfiable", + "422" => "Unprocessable Entity", "500" => "Internal Server Error", "502" => "Bad Gateway", "503" => "Service Unavailable", "509" => "Bandwidth Limit Exceeded" -} +}.freeze if ARGV[0] == "config" puts "graph_title HTTP response codes" @@ -34,6 +35,7 @@ if ARGV[0] == "config" HTTP_STATUSES.each do |code, label| puts "http#{code}.label #{code} #{label}" puts "http#{code}.type DERIVE" + puts "http#{code}.min 0" end else statistics = JSON.parse(File.read("/srv/www.openstreetmap.org/rails/tmp/statistics.json"))