railsware / newrelic_platform_plugins

MIT License
42 stars 66 forks source link

Make it a Gem #2

Open barnaclebarnes opened 11 years ago

barnaclebarnes commented 11 years ago

It would be nice if this was bundled as a gem.

maxtor commented 11 years ago

agree :+1:

maxtor commented 11 years ago

Haproxy Plugin published as a gem, Please, test it: https://github.com/railsware/newrelic_platform_plugins/tree/master/newrelic_haproxy_agent

maxtor commented 11 years ago

Resque Plugin published as a gem, Please, test it: https://github.com/railsware/newrelic_platform_plugins/tree/master/newrelic_resque_agent

NicosKaralis commented 11 years ago

Using newrelic_resque_agent as a gem, after i install i tried to run: newrelic_resque_agent -h and it gives me this erorr

WARN: Unresolved specs during Gem::Specification.reset:
      json (>= 0)
      rack (>= 1.0.0, ~> 1.4)
      multi_json (~> 1.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
/Users/nicoskaralis/.rvm/gems/ruby-2.0.0-p247@BusGoianiaServer/gems/newrelic_resque_agent-1.0.1/lib/newrelic_resque_agent.rb:5:in `require': cannot load such file -- newrelic_plugin (LoadError)
    from /Users/nicoskaralis/.rvm/gems/ruby-2.0.0-p247@BusGoianiaServer/gems/newrelic_resque_agent-1.0.1/lib/newrelic_resque_agent.rb:5:in `<top (required)>'
    from /Users/nicoskaralis/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
    from /Users/nicoskaralis/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
    from /Users/nicoskaralis/.rvm/gems/ruby-2.0.0-p247@BusGoianiaServer/gems/newrelic_resque_agent-1.0.1/bin/newrelic_resque_agent:5:in `<top (required)>'
    from /Users/nicoskaralis/.rvm/gems/ruby-2.0.0-p247@BusGoianiaServer/bin/newrelic_resque_agent:23:in `load'
    from /Users/nicoskaralis/.rvm/gems/ruby-2.0.0-p247@BusGoianiaServer/bin/newrelic_resque_agent:23:in `<main>'
    from /Users/nicoskaralis/.rvm/gems/ruby-2.0.0-p247@BusGoianiaServer/bin/ruby_noexec_wrapper:14:in `eval'
    from /Users/nicoskaralis/.rvm/gems/ruby-2.0.0-p247@BusGoianiaServer/bin/ruby_noexec_wrapper:14:in `<main>'
maxtor commented 11 years ago

may be the reason of problem is ruby-2.0.0. it is not tested on ruby 2.0.0, I will check

kevireilly commented 11 years ago

I'm receiving the same issue on ruby 1.8.7 with ubuntu 12.04

root@lb5:/# newrelic_haproxy_agent install
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- bundler/setup (LoadError)
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.8/gems/newrelic_haproxy_agent-1.0.1/lib/newrelic_haproxy_agent.rb:4
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.8/gems/newrelic_haproxy_agent-1.0.1/bin/newrelic_haproxy_agent:5
    from /usr/local/bin/newrelic_haproxy_agent:19:in `load'
    from /usr/local/bin/newrelic_haproxy_agent:19
graphicmist commented 10 years ago

is this issue resolved. I am also facing the same issue with ruby version 1.8.7 in centos