Skip to content

Commit

Permalink
memcached: Report connections rate
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Forster <octo@collectd.org>
  • Loading branch information
Pavel Rochnyack authored and octo committed Sep 26, 2017
1 parent 44844d8 commit 66ac89c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/memcached.c
Expand Up @@ -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
Expand Down

0 comments on commit 66ac89c

Please sign in to comment.