]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: counters: Add a counter to report internal processing errors
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 16 Dec 2019 10:11:02 +0000 (11:11 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:45 +0000 (15:18 +0100)
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.

include/types/counters.h

index 97df045e3a08922424089258e49c3abe51209ffa..7c525b7530ea012e6db7a74c6bd67512e3f061f1 100644 (file)
@@ -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 */