Redis is an open source, in-memory data structure store, used as a database, cache and message broker. Our integration pulls in statistics from the Redis
INFO command for comprehensive and complete Redis monitoring.
redis plugin is included with the AppOptics host agent by default. Please follow the directions below to enable it for a host agent instance.
You’ll need to have a Redis server accessible. Take note of the host address, port, and password (if set). This will be needed later in the configuration step.
The host agent provides an example configuration file to help you get started quickly. It defines the plugin and task file to be loaded by the agent, but requires you to provide the correct settings for your Redis installation. To enable the plugin:
- Make a copy of the Redis example configuration file
/opt/appoptics/etc/plugins.d/redis.yaml.example, renaming it to
$ sudo cp /opt/appoptics/etc/plugins.d/redis.yaml.example /opt/appoptics/etc/plugins.d/redis.yaml
- Edit the configuration file with settings specific to your Redis install:
$ sudo nano /opt/appoptics/etc/plugins.d/redis.yaml
In this configuration you’ll notice that it is already configured for
localhost. If your Redis server is located on another server you will need to edit the configuration to reflect the correct server address and password (if applicable):
collector: redis: all: ## specify servers via a url matching: ## [protocol://][:password]@address[:port] ## e.g. ## tcp://localhost:6379 ## tcp://:firstname.lastname@example.org ## ## If no servers are specified, then localhost is used as the host. ## If no port is specified, 6379 is used servers: |- tcp://localhost:6379 tcp://otherhost:6379 load: plugin: snap-plugin-collector-bridge-redis task: task-bridge-redis.yaml
Save your changes and return to the command prompt.
- Restart the agent after any configuration changes have been made:
$ sudo service appoptics-snapteld restart
- Enable the Redis plugin
On the Integrations Page you will see Redis available if the previous steps were successful. It may take a couple minutes before the Redis plugin is identified.
Select the Redis plugin to open the configuration menu in the UI, and enable the plugin.