projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44844d8
)
memcached: Report connections rate
author
Pavel Rochnyack
<pavel2000@ngs.ru>
Sun, 30 Jul 2017 11:10:00 +0000
(18:10 +0700)
committer
Florian Forster
<octo@collectd.org>
Tue, 26 Sep 2017 14:51:19 +0000
(16:51 +0200)
Signed-off-by: Florian Forster <octo@collectd.org>
src/memcached.c
patch
|
blob
|
history
diff --git
a/src/memcached.c
b/src/memcached.c
index
3502e35
..
9cc7a05
100644
(file)
--- a/
src/memcached.c
+++ b/
src/memcached.c
@@
-377,6
+377,13
@@
static int memcached_read(user_data_t *user_data) {
} else if (FIELD_IS("listen_disabled_num")) {
submit_derive("connections", "listen_disabled", atof(fields[2]), st);
}
+ /*
+ * Total number of connections opened since the server started running
+ * Report this as connection rate.
+ */
+ else if (FIELD_IS("total_connections")) {
+ submit_derive("connections", "opened", atof(fields[2]), st);
+ }
/*
* Commands