Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Add a Redis SLOWLOG client #30
aphyr merged 1 commit into riemann:master from inkel:redis-slowlog-client
Apr 2, 2013
Commits on Mar 30, 2013
Mar 30, 2013
The `riemann-redis-slowlog` client uses Redis' SLOGLOW  command in order to report those queries that exceeded a certain amount of time. This client accepts the following CLI flags: * --redis-url, -d <s>: Redis URL (default: redis://127.0.0.1:6379/) * --redis-password, -r <s>: Redis password (default: "") * --slowlog-len, -s <i>: Number of SLOWLOG entries to get (default: 10) * --slowlog-reset, -o: Reset SLOWLOG after querying it (default: false) The Redis SLOWLOG format returns the id, timestamp, microseconds spent while executing the command and an array of command and arguments sent to the Redis server. This last array is sent as a Ruby inspect string in the `description` field. The service indicated by this client is `redis`. The state is always `warning`, and the tags sent with the reported event are `redis` and `slowlog`.  http://redis.io/commands/slowlog