summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c875745)
raw | patch | inline | side by side (parent: c875745)
author | Florian Forster <octo@collectd.org> | |
Tue, 24 Oct 2017 06:30:58 +0000 (08:30 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Tue, 24 Oct 2017 06:30:58 +0000 (08:30 +0200) |
src/memcached.c | patch | blob | history | |
src/types.db | patch | blob | history |
diff --git a/src/memcached.c b/src/memcached.c
index d57a1d32c3b41d472c4519d6185c5b61a2aaa104..1cd5a3016654a711fa7e9021e9c625288efc04e4 100644 (file)
--- a/src/memcached.c
+++ b/src/memcached.c
else if (FIELD_IS("curr_connections")) {
submit_gauge("memcached_connections", "current", atof(fields[2]), st);
} else if (FIELD_IS("listen_disabled_num")) {
- submit_derive("operations", "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
/* group = */ "memcached",
/* name = */ callback_name,
/* callback = */ memcached_read,
- /* interval = */ 0, &(user_data_t){
- .data = st, .free_func = memcached_free,
- });
+ /* interval = */ 0,
+ &(user_data_t){
+ .data = st, .free_func = memcached_free,
+ });
} /* int memcached_add_read_callback */
/* Configuration handling functiions
diff --git a/src/types.db b/src/types.db
index 577d28f184c8a67cca60754fa34c0c4618a16834..4ca57aa796605c66ac99debfa12c6a3e33c07c06 100644 (file)
--- a/src/types.db
+++ b/src/types.db
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