artemave / newrelic_prodotti_agent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New Relic Prodotti Plugin

Monitors Prodotti.

Instructions for running the Prodotti plugin agent

  1. run bundle install to install required gems
  2. Edit config/newrelic_plugin.yml and replace "YOUR_LICENSE_KEY_HERE" with your New Relic license key
  3. Edit the config/newrelic_plugin.yml file and add Redis connection string
  4. Running the plugin

In order to check your configuration, you can launch the plugin in foreground mode, with all output going to stdout:

./newrelic_prodotti_agent

In case of success, collected data should appear in the New Relic user interface shortly after starting.

Plugin can also be started as a daemon using the following command:

./newrelic_prodotti_agent.daemon start

In this case you can check its status by running

./newrelic_prodotti_agent.daemon status

and stop it with

./newrelic_prodotti_agent.daemon stop

Monit example

check process newrelic_prodotti_agent
  with pidfile /home/ubuntu/newrelic_prodotti_agent/newrelic_prodotti_agent.pid
  start program = "/bin/su - ubuntu -c '/home/ubuntu/newrelic_prodotti_agent/newrelic_prodotti_agent.daemon start'" with timeout 90 seconds
  stop program = "/bin/su - ubuntu -c '/home/ubuntu/newrelic_prodotti_agent/newrelic_prodotti_agent.daemon stop'" with timeout 90 seconds
  if totalmem is greater than 250 MB for 2 cycles then restart
  group newrelic_agent

About


Languages

Language:Ruby 100.0%