From: Tom Hughes Date: Thu, 2 Apr 2015 10:14:34 +0000 (+0100) Subject: Tweak API status munin plugin a bit X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/de9f35ad554a2b36e16cd22af8a9175cb442f01f?hp=4978d9ecdfcbac444ddf057622403e1e5148654a;ds=sidebyside Tweak API status munin plugin a bit --- diff --git a/cookbooks/munin/files/default/plugins/api_calls_status b/cookbooks/munin/files/default/plugins/api_calls_status index 741ca14c4..8167f21d6 100755 --- a/cookbooks/munin/files/default/plugins/api_calls_status +++ b/cookbooks/munin/files/default/plugins/api_calls_status @@ -4,6 +4,7 @@ require "json" HTTP_STATUSES = { "200" => "OK", + "206" => "Partial Content", "301" => "Moved Permanently", "302" => "Found", "303" => "See Other", @@ -12,21 +13,26 @@ HTTP_STATUSES = { "401" => "Unauthorized", "403" => "Forbidden", "404" => "Not Found", + "405" => "Method Not Allowed", "408" => "Request Timeout", "409" => "Conflict", "410" => "Gone", + "412" => "Precondition Failed", + "416" => "Requested Range Not Satisfiable", "500" => "Internal Server Error", + "502" => "Bad Gateway", + "503" => "Service Unavailable", "509" => "Bandwidth Limit Exceeded" } if ARGV[0] == "config" puts "graph_title HTTP response codes" - puts "graph_args --base 1000 --logarithmic" + puts "graph_args --base 1000" puts "graph_vlabel Number of requests per ${graph_period}" puts "graph_category api" HTTP_STATUSES.each do |code, label| - puts "http#{code}.label #{label}" + puts "http#{code}.label #{code} #{label}" puts "http#{code}.type DERIVE" end else