railsware / newrelic_platform_plugins

MIT License
42 stars 66 forks source link

Running newrelic_resque_agent on Heroku #46

Open jeromeboe opened 10 years ago

jeromeboe commented 10 years ago

I followed the intructions in the README, but it doesn't seem to work.

1) I add the gem 2) I created the config/newrelic_plugin.yml file as follow :

newrelic:
  license_key: <%= ENV['NEW_RELIC_LICENSE_KEY'] %>
  verbose: 0

agents:
  my_resque_agent_name:
    redis: <%= ENV["REDISCLOUD_URL"] %>
    namespace:

3) I added resque_monitoring: newrelic_resque_agent run -c config/newrelic_plugin.yml to my Procfile 4) I scaled my dynos

My ENV['REDISCLOUD_URL'] looks like redis://rediscloud:password@pub-redis-16503.eu-west-1-1.2.ec2.garantiadata.com:16503, I'm using the rediscloud heroku adds-on and the database is not specified.

I've been waiting for a wile, but I don't find any resque monitoring on my newrelic interface (nothing in the plugin section).

andriytyurnikov commented 10 years ago

@jeromeboe, this config lines do not work:

license_key: <%= ENV['NEW_RELIC_LICENSE_KEY'] %>
redis: <%= ENV["REDISCLOUD_URL"] %>

problem is that ERB in YAML do not work for currently used newrelic_plugin gem.

You are welcome to support backport pull request, which will help. https://github.com/newrelic-platform/newrelic_plugin/pull/41

@maxtor, consider updating dependencies to the last version of newrelic_plugin gem. Be aware - no backward compatibility there.

Also you may use our monkeypatched fork at https://github.com/curriculet/newrelic_platform_plugins/tree/monkeypatch_erb_yaml

But please make your own fork of that -- when pull requests will be accepted we'll kill our monkeypatched fork.

greggroth commented 8 years ago

I see that https://github.com/newrelic-platform/newrelic_plugin/pull/41 was closed -- is it safe to assume ERB will work in the config file?