newrelic_redis_plugin
newrelic_redis_plugin copied to clipboard
New Relic plugin for Redis in Ruby
newrelic_redis_plugin
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.
Spec
Tested with:
- Ruby 2.0.0
- Gem: dante 0.2.0
Installation
- Download the latest release
- Extract to the location you want to run the agent from
- Copy
config/template_newrelic_plugin.ymltoconfig/newrelic_plugin.yml - Edit
config/newrelic_plugin.ymland replace "YOUR_LICENSE_KEY_HERE" with your New Relic license key
Usage
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
Config Options
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
Example
agents:
redis:
instance_name: MyRedisServer
url: redis://127.0.0.1:6379
database: db0