New Relic plugin for Redis in Ruby.
Unlike other plugins, it's simple and dedicated for Redis. Most of the statistics are available and built to run as a daemon with PID file and logging.
Tested with:
- Ruby 2.0.0
- Gem: dante 0.2.0
- Download the latest release
- Extract to the location you want to run the agent from
- Copy
config/template_newrelic_plugin.yml
toconfig/newrelic_plugin.yml
- Edit
config/newrelic_plugin.yml
and replace "YOUR_LICENSE_KEY_HERE" with your New Relic license key
Simply do ./newrelic_redis_agent
to run in the foreground. Other command line options are:
-d
– Run as daemon-c FILE
– Designate a config file
Few configuration options are available in config/newrelic_plugin.yml
.
instance_name
– Name of the instance that will be listed in New Relic; default: "HOSTNAME:PORT"url
– Your Redis server; use "redis://127.0.0.1:6379" as defaultdatabase
– the database in which to lookup 'total keys'; use "db0" as default
agents:
redis:
instance_name: MyRedisServer
url: redis://127.0.0.1:6379
database: db0