-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install new relic #1155
Comments
Also wondering... |
Yes I have and I will explain in my next post as it will take me a little bit to write it :-) |
Ok so to start the system monitoring tool needs to be installed on your base machine as this will monitor the docker instances as well so go ahead and follow the new relic docs for that one. Small note the new relic server monitoring tool is being removed soon so if you have a paid account go ahead an install the infrastructure stuff instead. For APM you will want to first edit you php-fpm Dockerfile-{VERSION} file and insert the below code in just above the final touch section. # install newrelic apm agent
ENV NEWRELIC_FILENAME=newrelic-php5-7.4.0.198-linux-musl.tar.gz
ENV ENVIRONMENT {APP NAME GOES HERE}
ENV NR_INSTALL_SILENT true
ENV NR_INSTALL_KEY {LICENCE KEY GOES HERE}
RUN cd /opt \
&& apt-get install -y wget --no-install-recommends \
&& wget -O - https://download.newrelic.com/548C16BF.gpg | apt-key add - \
&& sh -c 'echo "deb http://apt.newrelic.com/debian/ newrelic non-free" > /etc/apt/sources.list.d/newrelic.list' \
&& apt-get update \
&& apt-get install -y newrelic-php5 --no-install-recommends \
&& newrelic-install install Then rebuild you nginx container and new relic should be installed and monitoring. If you have multiple site running then you will want to edit you nginx site config and add the code below into each of the location ~ .php$ sections for each site fastcgi_param PHP_VALUE "newrelic.appname={SITE NAME}"; |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi again 👋 we would like to inform you that this issue has been automatically |
@shadow2004 when I run your script in my php-fpm dockerfile I get this error: |
I've faced with same problem. Fixed by adding:
|
anyone install newrelic on your server? how do you do it?
The text was updated successfully, but these errors were encountered: