Redis: Monitoring Redis with OpsDash

Quick Start

1. Install the OpsDash Smart Agent on the Redis server that you wish to monitor. If you need instructions for how to do this, here they are:   Debian/UbuntuCentOS/RHELGeneric.

2. Edit the OpsDash Smart Agent configuration file at  /etc/opsdash/agent.cfg and add a new service:

# choose a good, unique name for the service (here my-redis-1 is used
service "my-redis-1" {
    type = "redis"
    host = "127.0.0.1"
}

3. Reload the OpsDash Smart Agent so that it picks up the new configuration:

sudo service opsdash-agent reload

4. You should see the service my-redis-1 appear under  https://app.opsdash.com/sources within a minute or so. Clicking on it should take you to the dashboard at https://app.opsdash.com/source/my-redis-1. If it does not, check the agent log file at /var/log/opsdash/agent.log.

Authentication

If you're running Redis with authentication enabled, you can make OpsDash supply the password while connecting to Redis. Use the following configuration:

# choose a good, unique name for the service (here my-redis-1 is used)
service "my-redis-1" {
    type = "redis"
    host = "127.0.0.1"
    pass = "p@ssw0rd"
}
	

Notes

  • Redis versions 2.6 and above are supported.
  • You can install the OpsDash Smart Agent on any server that can connect to the Redis instance -- adjust "127.0.0.1" accordingly in the above instructions.
  • You can also specify a port (port = 6379) in the service configuration block if needed.
  • The OpsDash Smart Agent will also collect and report metrics of the server itself, where it is installed. This will appear under the "Servers" section on the Sources page.