New Relic requires root access on Openshift machin

2019-07-07 07:21发布

问题:

  • I have an Application on Openshift and I just added New Relic add-on
  • New Relic asks for setting up Server and configuration is listed as

However, I could not get root access , I tried

\> sudo rpm -Uvh http://download.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm
bash: /usr/bin/sudo: Permission denied

> su - root
bash: /bin/su: Permission denied

> sudo su
bash: /usr/bin/sudo: Permission denied

How do I setup New Relic on my Openshift box?

Thanks

回答1:

You're not allowed root access on OpenShift Online so you can't install the New Relic package globally. Application code on OpenShift operates in a sandbox environment—a gear. (More on the OpenShift architecture here.)

So to use New Relic on OpenShift you must make it work inside within a gear by creating an OpenShift cartridge. (That is, unless you can find an existing New Relic cartridge already made by someone else.) This blog post does a great job explaining the restrictions of software operating in a cartridge and goes through an example of making Apache work within a cartridge.



回答2:

New relic only currently supports a java agent cartridge according to this link: https://discuss.newrelic.com/t/deploying-new-relic-on-openshift/10522

I would seem that if you want any other platform you will need to contact OpenShift for support.