From fa91b25bcb720ab760ee389922775365e20803e6 Mon Sep 17 00:00:00 2001 From: Matt Cottingham Date: Fri, 23 May 2014 16:23:11 +0100 Subject: [PATCH] Submit listen_disabled_num in memcached.c This is a counter which increments when the connection limit to memcached is reached and a socket listen is disabled. --- src/memcached.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/memcached.c b/src/memcached.c index 7e12f129..577c526e 100644 --- a/src/memcached.c +++ b/src/memcached.c @@ -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 -- 2.11.0