Use this gem to access New Relic application information via a REST api
New Relic
gem "newrelic_api", "~> 1.2.3"