From: theairkit Date: Thu, 1 Dec 2016 14:22:45 +0000 (+0300) Subject: memcached plugin: Add delete_{hits,misses} metrics. X-Git-Tag: collectd-5.8.0~174 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1a244261c7eed35f4af7295339865944c322605c;p=collectd.git memcached plugin: Add delete_{hits,misses} metrics. --- diff --git a/src/memcached.c b/src/memcached.c index 5933bd48..627dc85f 100644 --- a/src/memcached.c +++ b/src/memcached.c @@ -412,8 +412,10 @@ static int memcached_read(user_data_t *user_data) { } /* - * Operations on the cache, i. e. cache hits, cache misses and evictions of - * items + * Operations on the cache: + * - get hits/misses + * - delete hits/misses + * - evictions */ else if (FIELD_IS("get_hits")) { submit_derive("memcached_ops", "hits", atoll(fields[2]), st); @@ -422,6 +424,10 @@ static int memcached_read(user_data_t *user_data) { submit_derive("memcached_ops", "misses", atoll(fields[2]), st); } else if (FIELD_IS("evictions")) { submit_derive("memcached_ops", "evictions", atoll(fields[2]), st); + } else if (FIELD_IS("delete_hits")) { + submit_derive("memcached_ops", "del_hits", atoll(fields[2]), st); + } else if (FIELD_IS("delete_misses")) { + submit_derive("memcached_ops", "del_misses", atoll(fields[2]), st); } /*