Skip to content

Commit

Permalink
Submit listen_disabled_num in memcached.c
Browse files Browse the repository at this point in the history
This is a counter which increments when the connection limit to
memcached is reached and a socket listen is disabled.
  • Loading branch information
mattrco committed May 23, 2014
1 parent 1930080 commit fa91b25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/memcached.c
Expand Up @@ -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
Expand Down

0 comments on commit fa91b25

Please sign in to comment.