From: Pavel Rochnyack Date: Sun, 19 May 2019 17:30:32 +0000 (+0700) Subject: memcached plugin: Report uptime metric X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fcf01182c40293262970e485abd67d5854f725d6;p=collectd.git memcached plugin: Report uptime metric Issue: #2852 --- diff --git a/src/memcached.c b/src/memcached.c index 0baf6c22..eb804d1d 100644 --- a/src/memcached.c +++ b/src/memcached.c @@ -509,6 +509,13 @@ static int memcached_read(user_data_t *user_data) { } /* + * Number of secs since the server started + */ + else if (FIELD_IS("uptime")) { + submit_gauge("uptime", NULL, atof(fields[2]), st); + } + + /* * Number of bytes used and available (total - used) */ else if (FIELD_IS("bytes")) {