Code

Submit listen_disabled_num in memcached.c
authorMatt Cottingham <matt.cottingham@gmail.com>
Fri, 23 May 2014 15:23:11 +0000 (16:23 +0100)
committerMatt Cottingham <matt.cottingham@gmail.com>
Fri, 23 May 2014 15:23:18 +0000 (16:23 +0100)
This is a counter which increments when the connection limit to
memcached is reached and a socket listen is disabled.

src/memcached.c

index 7e12f129d72c5f2cb4a1f09cce7c2a4971133c45..577c526ed08b0890ec6a5b701c4e4046a1c2a1b4 100644 (file)
@@ -437,6 +437,10 @@ static int memcached_read (user_data_t *user_data)
     {
       submit_gauge ("memcached_connections", "current", atof (fields[2]), st);
     }
+    else if (FIELD_IS ("listen_disabled_num"))
+    {
+      submit_derive ("memcached_connections", "listen_disabled_num", atof (fields[2]), st);
+    }
 
     /*
      * Commands