Skip to content
New Relic plugin for Redis in Ruby
Ruby
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Initial commit of the codes Sep 16, 2014
Gemfile Initial commit of the codes Sep 16, 2014
LICENSE Initial commit of the codes Sep 16, 2014
README.md Initial commit of the codes Sep 16, 2014
newrelic_redis_agent

README.md

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

  1. Download the latest release
  2. Extract to the location you want to run the agent from
  3. Copy config/template_newrelic_plugin.yml to config/newrelic_plugin.yml
  4. Edit config/newrelic_plugin.yml and 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 default
  • database – 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

License

MIT

You can’t perform that action at this time.