From: Pavel Rochnyack Date: Sun, 30 Jul 2017 11:10:00 +0000 (+0700) Subject: memcached: Report connections rate X-Git-Tag: collectd-5.8.0~78 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=66ac89cce88debf8cb9d43dd7b63a865d0e1d471;p=collectd.git memcached: Report connections rate Signed-off-by: Florian Forster --- diff --git a/src/memcached.c b/src/memcached.c index 3502e355..9cc7a052 100644 --- a/src/memcached.c +++ b/src/memcached.c @@ -377,6 +377,13 @@ static int memcached_read(user_data_t *user_data) { } else if (FIELD_IS("listen_disabled_num")) { submit_derive("connections", "listen_disabled", atof(fields[2]), st); } + /* + * Total number of connections opened since the server started running + * Report this as connection rate. + */ + else if (FIELD_IS("total_connections")) { + submit_derive("connections", "opened", atof(fields[2]), st); + } /* * Commands