From 52798119cec959afc55fabdae6501e73cbce8c4a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 29 Jun 2017 19:25:51 +0100 Subject: [PATCH] Monitor HTTP 422 responses --- cookbooks/munin/files/default/plugins/api_calls_status | 1 + cookbooks/munin/templates/default/munin.conf.erb | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cookbooks/munin/files/default/plugins/api_calls_status b/cookbooks/munin/files/default/plugins/api_calls_status index 1f18a453b..0d7c9b645 100755 --- a/cookbooks/munin/files/default/plugins/api_calls_status +++ b/cookbooks/munin/files/default/plugins/api_calls_status @@ -19,6 +19,7 @@ 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", diff --git a/cookbooks/munin/templates/default/munin.conf.erb b/cookbooks/munin/templates/default/munin.conf.erb index ec443ed74..6b08b07fe 100644 --- a/cookbooks/munin/templates/default/munin.conf.erb +++ b/cookbooks/munin/templates/default/munin.conf.erb @@ -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_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.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 -- 2.43.2