Using NewRelic Plugins

Peter -

NewRelic provides a plugin architecture that allows you to extend application monitoring to many popular applications, here is a short list:

 

- Alternative PHP Cache

- Apache HTTP Server

- CouchDB

- Edgecast CDN "Realtime" API

- Memcached

- MongoDB

- Nginx

- pgBouncer

- PHP FPM

- PostgreSQL

- RabbitMQ

- Redis

- Riak

- uWSGI

 

Utilizing the python agent - https://pypi.python.org/pypi/newrelic_plugin_agent, you can start monitoring the various application reported states

 

Base Requirements
-----------------
The agent requires Python 2.6 or 2.7 and pip for installation. Individual plugin backends may require additional libraries and are detailed below.

Configuration File Note
-----------------------
The configuration file uses YAML as its format. Most tickets for non-working installs are due to configuration file formatting errors. Please make sure you are properly formatting your configuration file prior to submitting a ticket. YAML is a whitespace dependent markup format. More information on writing proper YAML can be found at http://yaml.org.

Installation Instructions
-------------------------
1. Install via pip*:

    pip install newrelic-plugin-agent

* See pip installation instructions at http://www.pip-installer.org/en/latest/installing.html

2. Copy the configuration file example from /opt/newrelic_plugin_agent/newrelic_plugin_agent.cfg to /etc/newrelic/newrelic_plugin_agent.cfg and edit the configuration in that file.

3. Make a /var/log/newrelic directory and make sure it is writable by the user specified in the configuration file

4. Make a /var/run/newrelic directory and make sure it is writable by the user specified in the configuration file

5. Run the app:

    newrelic_plugin_agent -c PATH-TO-CONF-FILE [-f]

Where -f is to run it in the foreground instead of as a daemon.

Sample configuration and init.d scripts are installed to /opt/newrelic_plugin_agent in addition to a PHP script required for APC monitoring

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.