projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1930080
)
Submit listen_disabled_num in memcached.c
author
Matt Cottingham
<matt.cottingham@gmail.com>
Fri, 23 May 2014 15:23:11 +0000
(16:23 +0100)
committer
Matt Cottingham
<matt.cottingham@gmail.com>
Fri, 23 May 2014 15:23:18 +0000
(16:23 +0100)
This is a counter which increments when the connection limit to
memcached is reached and a socket listen is disabled.
src/memcached.c
patch
|
blob
|
history
diff --git
a/src/memcached.c
b/src/memcached.c
index
7e12f12
..
577c526
100644
(file)
--- a/
src/memcached.c
+++ b/
src/memcached.c
@@
-437,6
+437,10
@@
static int memcached_read (user_data_t *user_data)
{
submit_gauge ("memcached_connections", "current", atof (fields[2]), st);
}
+ else if (FIELD_IS ("listen_disabled_num"))
+ {
+ submit_derive ("memcached_connections", "listen_disabled_num", atof (fields[2]), st);
+ }
/*
* Commands