Today, Newrelic announced a new open platform for you to install your own plugin to monitor your own stack.
It featured a list of default plugin - http://newrelic.com/platform that you can use. Since
I use Nginx on my server, so I decided to give it a try.
First the plugin require you to install Ruby and bundler for Ruby, after that you need to download the tar file from http://nginx.com/nrform.html.
Download the file to your server and decompress it, then run
If you have problem with the gem's json and see an error like this
mkmf.rb can't find header files for ruby at /usr/share/ruby/include/ruby.h
Make sure you install ruby-devel and other require dependencies
sudo yum install ruby-rdoc ruby-devel
yum install make
yum install gcc
Also the Gemfile's git repository path is incorrect, change it to use HTTPS. You may get a message similar to the follwoing:
git clone email@example.com:/newrelic-platform/newrelic_plugin.git
Cloning into 'newrelic_plugin'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Change it to this.
gem "newrelic_plugin", :git => "https://github.com/newrelic-platform/newrelic_plugin.git", :branch => 'release'
Now "build install" again and you should be fine. Remember to follow the README file and change the account id. I skip those steps, and just descripted the PROBLEM you may see during the installation here.