From 1a244261c7eed35f4af7295339865944c322605c Mon Sep 17 00:00:00 2001 From: theairkit Date: Thu, 1 Dec 2016 17:22:45 +0300 Subject: [PATCH] memcached plugin: Add delete_{hits,misses} metrics. --- src/memcached.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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); } /* -- 2.30.2