projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bfc77ad
)
memcached plugin: Report "listen_disabled_num" as "operations".
author
Florian Forster
<octo@collectd.org>
Fri, 6 Oct 2017 06:36:39 +0000
(08:36 +0200)
committer
Florian Forster
<octo@collectd.org>
Mon, 23 Oct 2017 18:47:20 +0000
(20:47 +0200)
Fixes: #2386
src/memcached.c
patch
|
blob
|
history
diff --git
a/src/memcached.c
b/src/memcached.c
index
85794a5
..
d57a1d3
100644
(file)
--- a/
src/memcached.c
+++ b/
src/memcached.c
@@
-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")) {
else if (FIELD_IS("curr_connections")) {
submit_gauge("memcached_connections", "current", atof(fields[2]), st);
} else if (FIELD_IS("listen_disabled_num")) {
- submit_derive("
connec
tions", "listen_disabled", atoll(fields[2]), st);
+ submit_derive("
opera
tions", "listen_disabled", atoll(fields[2]), st);
}
/*
* Total number of connections opened since the server started running
}
/*
* Total number of connections opened since the server started running
@@
-683,10
+683,9
@@
static int memcached_add_read_callback(memcached_t *st) {
/* group = */ "memcached",
/* name = */ callback_name,
/* callback = */ memcached_read,
/* 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
} /* int memcached_add_read_callback */
/* Configuration handling functiions