A New Relic agent to collect status information from phusion passenger via the xml output of the passenger-status command
NOTE!!! Currently written to support passenger 4, parsing may not work correctly with passenger 3 outputs
- Download the latest version
- Extract to the location you want to run the agent from
bundle install
to get the necessary gems- Copy
config/template_newrelic_plugin.yml
toconfig/newrelic_plugin.yml
- Edit
config/newrelic_plugin.yml
and replace "YOUR_LICENSE_KEY_HERE" with your New Relic license key - Edit
config/newrelic_plugin.yml
and 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) - Run
./newrelic_passenger_agent
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
- 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)
This agent originally based on the passenger agent by tamaloa https://github.com/tamaloa/newrelic_passenger_plugin