New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

newrelic_plugins_hive

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

newrelic_plugins_hive

  • 0.0.5
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

NewRelic Plugins Hive

Without this gem, if you're using more then one plugin for NewRelic you need to download each plugin, configure it in different files and repositories, deploy it separately and run different process for each plugin (including monitor those processes etc...) NewRelic Plugins Hive allow you to easily download, configure and deploy multiple NewRelic plugins and run them all in one process!

Installation

Install the gem:

$ gem install newrelic_plugins_hive

Create a new hive application (this will create a new folder with the name you specified and the default folder structure and files):

$ hive new <APP_NAME>

Configure the hive

First, you need to configure which New Relic plugins you want to use in the hive. To do that open the file config/newrelic_hive.yml and add for each plugin its github repository and a path to the agent file in the repository.

Example structure of the file:

plugins:
  sidekiq:
    github: https://github.com/eksoverzero/newrelic_sidekiq_agent
    agent_path: newrelic_sidekiq_agent
  rabbitmq:
    github: https://github.com/gopivotal/newrelic_pivotal_agent
    agent_path: plugins/pivotal_rabbitmq_plugin/pivotal_rabbitmq_plugin.rb
  redis:
    github: https://github.com/gopivotal/newrelic_pivotal_agent
    agent_path: plugins/pivotal_redis_plugin/pivotal_redis_plugin.rb

It is enough that agent_path attribute will specify a unique filname in the repository. So in the example above you can just use this agent_path for redis:

agent_path: pivotal_redis_plugin.rb
Install the plugins in the hive

This will download and extract the plugin agents that specified in config/newrelic_hive.yml:

$ hive install

Configure each plugin

Configuring the plugins in the hive requires 3 simple steps:

  1. Add your New Relic license key to config/newrelic_plugin.yml
  2. For each plugin, add the plugin specific configuration to config/newrelic_plugin.yml under the section agents
  3. Add additional gems to your Gemfile, if the plugins in the hive require it.

Example: The RabbitMQ plugin has a configuration to specify the rabbitmq url, as well as the Sidekiq plugins that requires the Redis uri, so example config/newrelic_plugin.yml will look like:

newrelic:
  license_key: 'YOUR_LICENSE_KEY_HERE'

  # Set to '1' for verbose output, remove for normal output.
  verbose: 1

agents:
  rabbitmq:
    management_api_url: http://user:password@hostname:55672

  sidekiq_status_agent:
    -
      instance_name: "Name"
      uri: "redis://localhost:6379"
      namespace: "namespace"

This example combine in the same config/newrelic_plugin.yml configurations from two different plugins (rabbitMQ and Sidekiq). You must look at your plugin documentation and follow the instructions how to configure it.

Usage

Run the agent:

$ hive run

Or, as a maemon:

$ hive run -d start # Start the daemon
$ hive run -d stop # Stop the daemon

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 22 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc