Merge pull request #2468 from octo/ff/memcached
authorPavel Rochnyak <pavel2000@ngs.ru>
Tue, 24 Oct 2017 16:18:23 +0000 (23:18 +0700)
committerGitHub <noreply@github.com>
Tue, 24 Oct 2017 16:18:23 +0000 (23:18 +0700)
memcached plugin: Report "listen_disabled_num" as "total_events".

src/memcached.c
src/types.db

index 85794a5..1cd5a30 100644 (file)
@@ -523,7 +523,7 @@ static int memcached_read(user_data_t *user_data) {
     else if (FIELD_IS("curr_connections")) {
       submit_gauge("memcached_connections", "current", atof(fields[2]), st);
     } else if (FIELD_IS("listen_disabled_num")) {
-      submit_derive("connections", "listen_disabled", atoll(fields[2]), st);
+      submit_derive("total_events", "listen_disabled", atoll(fields[2]), st);
     }
     /*
      * Total number of connections opened since the server started running
index 577d28f..4ca57aa 100644 (file)
@@ -245,6 +245,7 @@ time_ref                value:GAUGE:0:U
 timeleft                value:GAUGE:0:U
 total_bytes             value:DERIVE:0:U
 total_connections       value:DERIVE:0:U
+total_events            value:DERIVE:0:U
 total_objects           value:DERIVE:0:U
 total_operations        value:DERIVE:0:U
 total_requests          value:DERIVE:0:U