]> git.openstreetmap.org Git - chef.git/commitdiff
Monitor HTTP 422 responses
authorTom Hughes <tom@compton.nu>
Thu, 29 Jun 2017 18:25:51 +0000 (19:25 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 29 Jun 2017 18:25:51 +0000 (19:25 +0100)
cookbooks/munin/files/default/plugins/api_calls_status
cookbooks/munin/templates/default/munin.conf.erb

index 1f18a453bcd84147f905aa48bd8c8cc11f9102ff..0d7c9b645c2c07e008e1b23a0d60e2ed7a35cbf1 100755 (executable)
@@ -19,6 +19,7 @@ HTTP_STATUSES = {
   "410" => "Gone",
   "412" => "Precondition Failed",
   "416" => "Requested Range Not Satisfiable",
   "410" => "Gone",
   "412" => "Precondition Failed",
   "416" => "Requested Range Not Satisfiable",
+  "422" => "Unprocessable Entity",
   "500" => "Internal Server Error",
   "502" => "Bad Gateway",
   "503" => "Service Unavailable",
   "500" => "Internal Server Error",
   "502" => "Bad Gateway",
   "503" => "Service Unavailable",
index ec443ed742cfd7434edd8d1b4ece94d775497ca5..6b08b07fecee040df2b3327359f78c080cb9efb8 100644 (file)
@@ -151,10 +151,13 @@ unknown_limit 144
     api_calls_error.graph_title HTTP errors
     api_calls_error.graph_vlabel Number of errors per ${graph_period}
     api_calls_error.graph_category api
     api_calls_error.graph_title HTTP errors
     api_calls_error.graph_vlabel Number of errors per ${graph_period}
     api_calls_error.graph_category api
-    api_calls_error.graph_order http401 http500 http502 http503 http509
+    api_calls_error.graph_order http401 http422 http500 http502 http503 http509
     api_calls_error.http401.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_status.http401", @frontends %>
     api_calls_error.http401.label 401 Unauthorized
     api_calls_error.http401.warning :0.5
     api_calls_error.http401.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_status.http401", @frontends %>
     api_calls_error.http401.label 401 Unauthorized
     api_calls_error.http401.warning :0.5
+    api_calls_error.http422.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_status.http422", @frontends %>
+    api_calls_error.http422.label 422 Unprocessable Entity
+    api_calls_error.http422.warning :0.5
     api_calls_error.http500.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_status.http500", @frontends %>
     api_calls_error.http500.label 500 Internal Server Error
     api_calls_error.http500.warning :0.5
     api_calls_error.http500.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_status.http500", @frontends %>
     api_calls_error.http500.label 500 Internal Server Error
     api_calls_error.http500.warning :0.5