A New Relic agent to collect status information from phusion passenger via the xml output of the 'passenger-status' command and the output of the 'free' command
NOTE!!! Currently written to support passenger 4, parsing may not work correctly with passenger 3 outputs
Passenger Agent Installation
- Download the latest version
- Extract to the location you want to run the agent from
bundle installto get the necessary gems
config/newrelic_plugin.ymland replace "YOUR_LICENSE_KEY_HERE" with your New Relic license key
config/newrelic_plugin.ymland add the full path to your 'passenger-status --show=xml' and 'free -m' commands if needed, as well as the hostname (as you want it to appear in NewRelic)
Data for this agent is collected by running the commands 'passenger-status --show=xml' and 'free -m' then parsing the results
Data captured for => passenger-status --show=xml - # of processes running (max and current) - # waiting in queue - total sessions active - total cpu usage - memory usage by process
Data captured for => free -m - Total memory - Memory used (all) - Memory free (all) - shared memory - allocated to buffers - cached - memory used by applications - memory available to applications - total swap - swap used - swap free - % Memory free (for summary metrics page)
Installing via chef?
check out https://github.com/ssalinas/newrelic_monitoring
The passenger plugin extends the power of New Relic's monitoring capabilities.
Get This Plugin
Already have a New Relic account? Log in and begin using this plugin.