From: Christopher Faulet Date: Mon, 16 Dec 2019 10:11:02 +0000 (+0100) Subject: MINOR: counters: Add a counter to report internal processing errors X-Git-Tag: v2.2-dev1~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4ce6c2957a3cff1b80f0fb9ab8e31841372820f;p=thirdparty%2Fhaproxy.git MINOR: counters: Add a counter to report internal processing errors This counter, named 'internal_errors', has been added in frontend and backend counters. It should be used when a internal error is encountered, instead for failed_req or failed_resp. --- diff --git a/include/types/counters.h b/include/types/counters.h index 97df045e3a..7c525b7530 100644 --- a/include/types/counters.h +++ b/include/types/counters.h @@ -45,6 +45,7 @@ struct fe_counters { long long denied_conn; /* denied connection requests (tcp-req-conn rules) */ long long denied_sess; /* denied session requests (tcp-req-sess rules) */ long long failed_rewrites; /* failed rewrites (warning) */ + long long internal_errors; /* internal processing errors */ long long cli_aborts; /* aborted responses during DATA phase caused by the client */ long long srv_aborts; /* aborted responses during DATA phase caused by the server */ @@ -95,6 +96,7 @@ struct be_counters { long long redispatches; /* retried and redispatched connections (BE only) */ long long failed_rewrites; /* failed rewrites (warning) */ long long failed_secu; /* blocked responses because of security concerns */ + long long internal_errors; /* internal processing errors */ long long failed_checks, failed_hana; /* failed health checks and health analyses for servers */ long long down_trans; /* up->down transitions */